Click to See Complete Forum and Search --> : Form Fill Out -> Submit?
Emo
Nov 26th, 2000, 09:51 PM
Hey,
I have question. I want to do this... On the web site I want to put whole bunch a quesions, and the person has to fill in the answers into a textbox. My quesion is this, how can they submit the info to me when the are done, or how can I see whe they had filled out later on? It's not really a survey, I think it's more like a test...
Thanks!
-Emo
HarryW
Nov 26th, 2000, 10:14 PM
Well if you're using some kind of server-side scripting like ASP or PHP it's fairly simple, you can just set a form's Action attribute to the script you want to process the results, and the variables will be available for you by the names of the input controls you had in the first page.
If you want to do it in client-side JavaScript, you could open a new window when the user clicks a button, which will be filled out with their results. This is fairly simple.
It seems like you want to save their results though, so server-side scripting is probably best. If you are using ASP the variables will be available using the Request object, like this:
Say you had a textbox named text1...
If you used the POST method -
Request.Form("text1")
If you used the GET method -
Request.QueryString("text1")
I am not entirely sure about the PHP code as I've never used it, but it will be documented at the website http://www.php.net if you want to go look. Try search under 'get method' or 'post method' depending which you're using (I'd advise POST method myself).
in PHP if you used the GET method it would be:
$text1
if you used the POST method it would be:
$text1
really convenient.. you can switch between the two without modifying code at all
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.