+ Reply to Thread
Results 1 to 3 of 3

Thread: Issue with FORM posting

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    36

    Issue with FORM posting

    I have a HTML Form that post to post.php :
    Code:
    <form action="post.php" method="post">
        <label for="title">Title:</label> <input type="text" size="50" name="title"/><br>
        <label for="number">Number:</label> <input type="text" size="50" name="number"/><br>
        <input type="submit" class="submit" name="add" value="Submit"/>
    </form>
    And in post.php :
    Code:
    if($_POST['add'] == "Submit")
    {
        echo "Great , i am here";
    }

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    34
    nstead of:
    Code:
    if($_POST['add'] == "Submit")
    do:
    Code:
    if($_POST['add'] == "Add")

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    36
    Thank you so much Madlin.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts