Getting Variables From A Form
I'm new to CGI, and would like to know how to get variables from a form. I have used the name of the object in the HTML form, but it doesn't seem to work. Any suggestions?
I'm new to CGI, and would like to know how to get variables from a form. I have used the name of the object in the HTML form, but it doesn't seem to work. Any suggestions?
Rob Pengelly posted this at 00:29 — 16th December 1999.
They have: 850 posts
Joined: Jul 1999
I will give you an example of what I do.
<form action="/cgi-bin/script.cgi" method="POST">
<input type="text" name="email">
<input type="text" name="name">
<input type="submit" value="GO">
</form>
Than at the start of the script I have:
Than whatever was inside the email <input box> would be in the variable $inputemail, and whatever was in the name <input box> would be in $inputname
------------------
A 'jiffy' is an actual unit of time for 1/100th of a second.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Willis posted this at 02:08 — 16th December 1999.
They have: 4 posts
Joined: Dec 1999
Ok, thanks.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.