<input type="hidden" name="gelisUrl" value="<?php echo $_SERVER['HTTP_REFERER']; ?>">
header("Location:" .$_POST["gelisUrl);