Problem submiting form

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!

Moderator: General Moderators

User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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..
User avatar
maliskoleather
Forum Contributor
Posts: 155
Joined: Tue May 15, 2007 2:19 am
Contact:

Post 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?
Post Reply