SyntaxFix
Write A Post
Hire A Developer
Questions
You need to give your submit <input> a name or it won't be available using $_POST['submit']:
<input>
$_POST['submit']
<p><input type="submit" value="Submit" name="submit" /></p>