I am using a form to \"Rate\" a page. This form \"posts\" data to a php script elsewhere. I simply want to display a link after the form is processed which will bring the us
Try this:
$previous = "javascript:history.go(-1)"; if(isset($_SERVER['HTTP_REFERER'])) { $previous = $_SERVER['HTTP_REFERER']; }
in html:
Back
The JavaScript code is initialize as fallback for HTTP_REFERER variable sometimes not work.
HTTP_REFERER