Is it possible to detect a redirect in php, if the redirect was to itelf?
in breif; can I add a line or two of code to the top of my page to first check if the page is a redirect. If it is act on it?
PHP Final line excuted on submit
header("Location: " . $_SERVER['REQUEST_URI']);
HTML Form
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>?submit=true" method="POST">
Still green with php, so learning little by little. Basically I need to control some variables if the page was redirected but only if.