Jump to content

back botton


dannybrazil

Recommended Posts

Easy way.. javascript.

 

<a href="#" onClick="history.go(-1)">Back</a> 
<input type=button value="Back" onClick="history.go(-1)">

 

Complicated way.. use sessions to track current and previous page. Create a link to previous page using

 

echo '<a href="' .$_SESSION['lastPage']. '">Back</a>';

Link to comment
https://forums.phpfreaks.com/topic/98182-back-botton/#findComment-502326
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.