Getting the HTML Name Value in Forms(newbie)
| From: | Daniel | Date: | Thu, 09 May 2002 07:28:07 +0000 |
| Subject: | Getting the HTML Name Value in Forms(newbie) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96912@lists.php.net to get a copy of this message | ||
ok, i have the following script
---- HTML File ---
<form action="action.php" method="post">
Your name: <input type="text" name="name">
You email: <input type="text" name="email">
<br>
Product1<input type="checkbox" name="Prod1" value="1000">
Product2<input type="checkbox" name="Prod2" value="1000">
<input type="submit">
</form>
--- End HTML Form ---
Ok, its just a simple purchase script for a free online game..
I know how to get the value of the thing via $Prod1 or $Prod2.. however this
form is emailed, so how can i get it to list the product's Name (name="")
field?
I've looked around and can't work out how to do this.
Theres 800 items at the moment and i don't want to have to type out all the
names, just get the names on the ones selected..
Can someone help?
Regards,
Daniel Maddern