Re; [UPHPU] Posting a form
Jon Jensen
jon at jenseng.com
Thu Feb 24 10:36:30 MST 2005
> Some interesting thoughts:
>
> After implementing Jonathan's suggestion of testing for
> $_SERVER['REQUEST_METHOD'], it is obvious that pressing enter
> causes the form to post. Or in other words, pressing enter
> causes the action attribute on the form to be processed. I
> experimented and took off the submit button. Pressing enter
> STILL WORKS! I did not think that was possible. I wonder if
> the PHP processing has something to do with it?
>
> Scott Hill
Nope, that simply has to do with the browser. In all modern browsers,
hitting enter in a form will submit it one way or another, regardless of the
presence of a submit button. It doesn't have anything to do with PHP or
anything on the server.
Jon
More information about the UPHPU
mailing list