I want to click on a link which goes back to the parent page.
It is simple to do if PHP has a built in variable for keeping track of the parent page. Does it? Otherwise I have to pass the name of the parent to the child page.
$_SERVER['HTTP_REFERER'] <-- contains the URL you came from, if that's what you meant
header("Location: " . $_SERVER['HTTP_REFERER']);
does not go back to the parent page. What is the command to do that?
Originally posted by kburger $_SERVER['HTTP_REFERER'] <-- contains the URL you came from, if that's what you meant
PHP has no knowledge of a 'parent' page. Sounds like you need a javascript solution. Or keep track of it yourself with PHP.