Jump to content

[SOLVED] last address


sheriff

Recommended Posts

You can do it in PHP...

 

<?php

if(isset($_SERVER["HTTP_REFERER"])) {
$url = $_SERVER["HTTP_REFERER"];
echo "<a href=\"$url\">Go back!</a>";
}

?>

 

... but this is more reliable (provided that your visitors have JavaScript enabled):

 

<?php

echo "<a href=\"javascript:history.go(-1)\">Go back!</a>";

?>

Link to comment
https://forums.phpfreaks.com/topic/53524-solved-last-address/#findComment-264525
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.