Re; [UPHPU] Posting a form

David Smith DavidSmith at byu.net
Thu Feb 24 10:30:05 MST 2005


<quote who="Scott.Hill at flyingj.com">
> 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?

This is not PHP's doing. The browser submitted the form when you pressed
enter. You don't need a submit button to actually submit the form. I
imagine you've seen search bars at the top of some pages that don't have a
button to the right.

--Dave



More information about the UPHPU mailing list