[thelist] How to capture GET form data through JavaScript?

Trent Whaley u233 at shaw.ca
Sun Feb 1 14:43:36 CST 2004


On February 1, 2004 12:18 pm, Chris Johnston wrote about "[thelist] How to 
capture GET form data through JavaScript?":
> Okay, one more JavaScript question;
>
> Is there anyway, once I have submitted a form using GET to capture that
> data in using JavaScript in the resulting page? Let me explain:
>
> I have page1 with a form ---> I submit that form to page2
>
> Anyway to capture the form values from page1 and display them on page2?

4 ways:
	look at the url of the second page. The GET data is encoded there.

	have the form processing script on the server do it. (ie, use PHP or ASP, not 
JavaScript) 

	Save the data in a cookie

	Have the pages wrapped in a frameset with only one frame, and store the data 
objects in the parent frameset. (not recommended).



More information about the thelist mailing list