.... se usi una form:

<form name="form1" method="post" action="<?php echo $_SERVER['HTTP_REFERER']; ?>">

.....

</form>