Best way to insert variable data

The question is about blog templates but you had no selection for it. I am using blog templates to create campsites websites. It works great, however, I want to use data from a sign up form in the pages. My background is in C++, JavaScript etc. so I need to load some variables in the pages. What is the best way to do this? Thanks, Jesse