We've expanded our news coverage and improved our search! Visit news.oreilly.com for the latest or search for all things across O'Reilly!
advertisement

Article:
  PHP Form Handling
Subject:   Form submission with hidden element
Date:   2004-11-15 21:58:56
From:   az_pete
You mentioned: testing for the presence of a hidden element avoids problems that can result from browsers' varying behaviors when a user submits a form by pressing the Enter key instead of clicking a submit button.
Could you elaborate on the problems that result when a user presses the enter key versus clicking the submit button?
I have generally just tested for the value of the submit button within my scripts instead of having to manage another form element (e.g. if (isset($_POST['submit_button_value'])) {process form} ). Is this not as good a method? Any thoughts would be appreciated.
Thanks.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Form submission with hidden element
    2006-01-03 20:44:16  Gustavoang [Reply | View]

    > Is this not as good a method?
    I think It isn't a good method at all.

    --
    Gustavo Narea.