How can I redirect the visitor to the last page the user came from using header() (or something else)?
$loc=$_SERVER['HTTP_REFERER']; header("Location: $loc");
Basically ..............