Page 1 of 1

Redirecting to previous page using php

Posted: Mon Sep 03, 2007 11:55 am
by kkonline
I want to redirect the user to the previous page, after the processing of the form is successful.

Apart from using meta redirect and java go.back is this possible with php
I don't think i can use header (location mysite/pages.php?a=1&b=2) as it would be a dynamic link .or can i

from current process.php i want to send the user to previous page which is of the format mysite/pages.php?a=1&b=2 (has 2-3 GET parts)

Posted: Mon Sep 03, 2007 2:32 pm
by Kieran Huggins
the referring URL is often in $_SERVER['HTTP_REFERER'] variable, but it's up to the browser to send it. That being said, it's virtually always there in modern browsers.