Here is my form:
Specifying no action will submit the form to the current page:
<form action="" method="post">
Alternatively use $_SERVER['PHP_SELF']:
$_SERVER['PHP_SELF']
<form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" method="post">