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!
Mozzila based browsers do not pass the value of the form submit unless the submit button is physically clicked on. So I would guess that you are filling in your form and pressing return/enter and not clicking the submit button?
Might be a plan to check for the existance of a hidden field rather than the submit button, since, as redmonkey indicated, there are browser inconsistencies. Also ensure that you use isset() (or empty() depending on need) to check whether a variable is set rather than doing $submit or !$submit which should only be used to check for true or false values.
redmonkey wrote:Mozzila based browsers do not pass the value of the form submit unless the submit button is physically clicked on. So I would guess that you are filling in your form and pressing return/enter and not clicking the submit button?
That's odd, I just coded up a little test and it did the opposite for me.
Hey, this is nothing to do with your problem, but it looks like you've got register globals on (you proably know this already, as you would have to have turned it on). This really should be off, as it promotes sloppy coding.