dink87522 Posted November 11, 2008 Share Posted November 11, 2008 Instead of having a link saying "go back to the page you cam from" and manually linking to that page, how with PHP is this done to send the user back to where they came from? Link to comment https://forums.phpfreaks.com/topic/132220-solved-how-do-i-go-back-with-php/ Share on other sites More sharing options...
DeanWhitehouse Posted November 11, 2008 Share Posted November 11, 2008 <a href="Javascript:history(-1);">Go Back</a> Is this what you want. Btw the JS i wrote isn't tested, and i think it might be slightly wrong Link to comment https://forums.phpfreaks.com/topic/132220-solved-how-do-i-go-back-with-php/#findComment-687286 Share on other sites More sharing options...
DeanWhitehouse Posted November 11, 2008 Share Posted November 11, 2008 Yep, my bad it is <a href="Javascript:history.back();">Go Back</a> Link to comment https://forums.phpfreaks.com/topic/132220-solved-how-do-i-go-back-with-php/#findComment-687308 Share on other sites More sharing options...
dink87522 Posted November 11, 2008 Author Share Posted November 11, 2008 Thanks. Link to comment https://forums.phpfreaks.com/topic/132220-solved-how-do-i-go-back-with-php/#findComment-687313 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.