Re: getting data from form...
| From: | Thomas Deliduka | Date: | Thu, 18 Oct 2001 21:07:22 +0000 |
| Subject: | Re: getting data from form... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71526@lists.php.net to get a copy of this message | ||
Well the form has to submit to the other file. Normally with default PHP
configurations it will automatically make the variables $Steak, $XYZ, and
$CHIPs with the corresponding values IF the checkboxes are checked. If it's
not checked nothing is set.
So you can do this on the receiving page:
If (!isset($Steak)) $Steak = 0;
If (!isset($XYZ)) $XYZ = 0;
If (!isset($CHIPs)) $CHIPs = 0;
Remember that variable names are case sensative.
On 10/18/2001 4:48 PM this was written:
> I have file .....
>
> index.php3.... a form in it ...
>
> <input type=checkbox name=Steak value="15.25">
> <input type=checkbox name=XYZ value="10.25">
> <input type=checkbox name=CHIPs value="5.25">
>
> and how to make it that form.php3 will read all the data that was submitted
> (i'm mean the name and the value)
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/