<form action="strip_tags(htmlspecialchars($_SERVER["PHP_SELF"]));" method="post"> <?php Check to see if submit button has been pressed other php code ?> html form stuff </form>