Posted: Sat Jun 23, 2007 8:36 pm
Agreed, I rarely hit the submit button on forms..feyd wrote:Why should we have to click a button to submit a form?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')