Issues with POST method in PHP

后端 未结 4 1570
失恋的感觉
失恋的感觉 2021-01-21 04:46

The Issue:

Undefined POST variables after form submission.

Research and Troubleshooting Done:

  • Read over a multit
4条回答
  •  别那么骄傲
    2021-01-21 05:01

    Try This

    register.php

    query($testQuery) === TRUE)
        {
            echo "New Record Created Successfully!";
        }
        else
        {
            echo "Error: " . $testQuery . "
    " . $conn->error; } $conn->close(); }

    signup.php

    
    
      

    SIDE NOTE ( If You Are Newbie )

    • Use method="post" instead of method="POST" (just standards)

    • You are not validating input fields (dangerous)

提交回复
热议问题