I have the following html form i am testing out.
Just add this inside the form:
So that it receives the $_POST['submit'] in your PHP.
$_POST['submit']