When a form is submitted with a submit button , e.g.:
<FORM ACTION="service.php" METHOD="POST">
<INPUT TYPE="TEXT" NAME="item">
<INPUT TYPE="SUBMIT" NAME="subm" VALUE="yes">
<INPUT TYPE="SUBMIT" NAME="subm" VALUE="no">
</FORM>
the variables $item, $subm in service.php should have been automatically
filled with some values, haven't they?, so I could do like this:
echo "You entered: ".$item;
echo " and clicked: ".$subm;
... however by my side IT ISN'T SO, all the variables are UNDEFINED which
product "parse error: undefined variable item.....". Why?
I know, it's possible to use $item = $_POST['item'] ... but not for all INPUT elements, e.g. checkbox.
Any idea to resolve this problem?