when do any type of user input i always use:
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
on the form, this way once user has submitted you can write a function or if, if elses etc. to confirm if the user has entered information if any and then direct accordingly.
hope this helps