Page 2 of 2

Posted: Sat Jun 23, 2007 8:36 pm
by John Cartwright
feyd wrote:
Styx wrote:ok, that's how they do it in the phpBB software, so that's what I've been going by

It's probably more reasonable to say that hitting enter from a text input field is wrong and you should submit a form by clicking the submit button.

If you don't want to use that, use if ($_SERVER['REQUEST_METHOD'] == 'POST')
Why should we have to click a button to submit a form?
Agreed, I rarely hit the submit button on forms..

Posted: Sat Jun 23, 2007 11:20 pm
by maliskoleather
feyd wrote:Why should we have to click a button to submit a form?
exactly.

plus, what about if an image is used instead of the submit button?