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? Quote 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 Quote 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> Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.