1. You forgot the "method" attribute in the "form" tag
2. When the page loads, the input boxes are empty by default. So, PHP doesn't get any value. To check this, enter a value to the input. If the error is gone, then put the code in an if conditional.
Code:
if (isset($_POST['submit']) { # code...
Leave a comment: