Can anyone explain to me php form action

Discussion in 'Databases' started by bghodsi, Sep 22, 2015.

  1. #1
    <form action="." method="post"> or <form action="" method="post">
    I came across this statement and I can not figure out what it means although I know what it does.

    Can anyone shed light on this for me?

    Bob Ghodsi
     
    bghodsi, Sep 22, 2015 IP
  2. malky66

    malky66 Acclaimed Member

    Messages:
    3,997
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #2
    Basically it means the form submits to the same page it's on, It doesn't submit to another page to process the information.
     
    malky66, Sep 22, 2015 IP
  3. najihamza

    najihamza Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    yes it means forms submit to the same page
     
    najihamza, Sep 23, 2015 IP
  4. michel13

    michel13 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    PHP_AELF is a variable that returns the current script being executed. This variable returns the name and path of the current file ( froom the root folder ) . You can use this variable in action field FORM.
     
    michel13, Nov 12, 2015 IP