Web Global Net Web Application & Web Development Project Center

Technical Issues => php related => Topic started by: admin on October 01, 2019, 04:41: PM



Title: php back button
Post by: admin on October 01, 2019, 04:41: PM

<?php
  $url = htmlspecialchars($_SERVER['HTTP_REFERER']);
  echo "<a href='$url' class='SBAButton2'>Back[/url]";
?>

normally you'd use " " in the class declaration but in this case use '  ' instead


You can also use

<input type="button" value="Go Back From Whence You Came!" onclick="history.back(-1)" />