TM> I have file .....
TM> index.php3.... a form in it ...
TM> <input type=checkbox name=Steak value="15.25">
TM> <input type=checkbox name=XYZ value="10.25">
TM> <input type=checkbox name=CHIPs value="5.25">
TM> and how to make it that form.php3 will read all the data that was submitted
TM> (i'm mean the name and the value)
do you mean :
reset($HTTP_POST_VARS);
while (list ($name, $value) = each($HTTP_POST_VARS)) {
proceed with them....
e.g.
if ($name=="Steak") {
echo "Variable name: ".$name." equals to ".$value;
};
if ($name=="XYZ") {
echo "Variable name : ".$name." and it's value is ".$value;
};
...........
};
Put this code whereever you want to process your submited form
Note that you haven't <input type="submit"> on your form, but in most cases it's
necessaey to have it (exept some JavaScript was added).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]