<form method="post" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
または
<form method="post" action="<?=$_SERVER["PHP_SELF"]?>">