View Full Version : Sending data to another HTML page

05-08-2007, 10:09 PM
What script do I use to send data from one webpage to another?

Can it be done using JavaScript?

I am creating a javascript quiz, I would like to send the results to a 'congratulations' page.


05-09-2007, 08:56 AM
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.