Drop List mysql Array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

recsx
Forum Newbie
Posts: 9
Joined: Mon May 31, 2004 8:44 pm

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hitting enter will not include it, last I checked...
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

You could always check the size of the post/get array..
Post Reply