has the form been submitted?

Discussion in 'PHP' started by mahmood, Apr 15, 2007.

  1. #1
    How do I check if a form has been submitted. One way that I know is to put a hidden tag inside the form and check if the value is back.

    Is there a standard way?
     
    mahmood, Apr 15, 2007 IP
  2. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #2
    note 'submit', is the name assigned to the submit button
    if (isset($_POST['submit'])) {

    }
     
    bobby9101, Apr 15, 2007 IP
    mahmood likes this.
  3. crewdesign

    crewdesign Peon

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ye that is the standard way that you suggested as far as I am aware
     
    crewdesign, Apr 17, 2007 IP