Page 2 of 2

Posted: Tue Jun 01, 2004 9:29 pm
by recsx
feyd wrote:>> if(submit)

If that's the name of your submit button, I wouldn't bank on it being there. Someone that hit's enter to submit the form will not pass the button. Instead, I'd either look at $_SERVER['REQUEST_METHOD'], and/or look for a field that is always unique to that specic post/get..
Actualy its

if ($submit)

thats called from
<INPUT TYPE="submit" NAME="submit" VALUE="Send">

its the NAME that is equal to $submit not the TYPE

so no matter what if someone hits enter within that form submit is the only thing there

Am i not right?

Posted: Tue Jun 01, 2004 9:46 pm
by feyd
hitting enter will not include it, last I checked...

Posted: Tue Jun 01, 2004 9:57 pm
by d3ad1ysp0rk
You could always check the size of the post/get array..