You need to have some form of server-side scripting. You would send your data as GET or POST arguments and output the html page from the server-side script with the appropriate data filled in. An alternative is dynamically generating the html contents in javascript, and replacing the current page with it (by setting document.innerhtml equal to the generated html perhaps), but that's messy.