I have a form that has multiple submit buttons. The form action calls another .php3 page to process. I don't seem to be able to access the value of my submit buttons to conditionally process branches of code. I am able to do this in other environments. Am I doing something incorrect? Following are some snippets to get an idea.
[tt]
<HTML>
// calls form2 as form action
<BODY>
<FORM Action="form2.php3" METHOD="POST">
<INPUT TYPE=SUBMIT NAME="SubmitType" VALUE="A">
<INPUT TYPE=SUBMIT NAME="SubmitType" VALUE="B">
<INPUT TYPE=SUBMIT NAME="SubmitType" VALUE="C">
</FORM>
</BODY>
</HTML>
<HTML>
// process form1
...
<?
IF ($HTTP_POST_VARS["SubmitType"] == "A"
{
...
}
ELSEIF ($HTTP_POST_VARS["SubmitType"] == "B"
...
[/tt]
All of the conditions will evaluate to false!
Any thoughts,
tone
[tt]
<HTML>
// calls form2 as form action
<BODY>
<FORM Action="form2.php3" METHOD="POST">
<INPUT TYPE=SUBMIT NAME="SubmitType" VALUE="A">
<INPUT TYPE=SUBMIT NAME="SubmitType" VALUE="B">
<INPUT TYPE=SUBMIT NAME="SubmitType" VALUE="C">
</FORM>
</BODY>
</HTML>
<HTML>
// process form1
...
<?
IF ($HTTP_POST_VARS["SubmitType"] == "A"
{
...
}
ELSEIF ($HTTP_POST_VARS["SubmitType"] == "B"
...
[/tt]
All of the conditions will evaluate to false!
Any thoughts,
tone