if(isset($_POST['submit'])){
//code here
}
Correct me if I am wrong, but I believe the code above will not work if the user submits the form using the “enter” key.
Is this true? If so, is there another if statement I can use instead of this to cover both the user using the submit button and pressing the enter key?
To check if a form is posted to the server use: