...

View Full Version : retrieving form data using Javascript



zola
03-17-2004, 04:17 AM
How do I get javascript to display and save the information entered on my form.
I have very little knowledge about this but what I want to have on my site is to get the information entered on my form to be displayed public(that is right away) after clicking the submit button.

glenngv
03-17-2004, 05:00 AM
Do you have an access to a server-side language (asp, php, jsp, etc)? This is done better in server-side. But if you don't have one, you can also use javascript.

Using GET as form method (<form method="get" action="page2.htm">), the form data are appended in the querystring. You can use this script (http://www.codingforums.com/showthread.php?s=&threadid=25786) to parse the querystring in the next page. If you don't want this method, there are other ways (http://www.webxpertz.net/faqs/jsfaq/passvars.php) of doing it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum