jamkelvl Posted January 29, 2010 Share Posted January 29, 2010 <?php echo "<meta http-equiv='refresh' content='1;URL=javascript:history.go(-1)'>"; ?> Link to comment https://forums.phpfreaks.com/topic/190290-why-doesnt-this-work/ Share on other sites More sharing options...
mikesta707 Posted January 29, 2010 Share Posted January 29, 2010 You are going to have to provide a little more information, as I just tried that and it worked perfectly fine. What "exactly" is happening? is there any more code on that page? Where is that echo statement? Version of PHP you have? What browser is this happening on (and have you tested it on multiple browsers?) just saying its not working isn't going to get your problem solved Link to comment https://forums.phpfreaks.com/topic/190290-why-doesnt-this-work/#findComment-1003917 Share on other sites More sharing options...
jamkelvl Posted January 29, 2010 Author Share Posted January 29, 2010 Solution: <?php echo ' <script> javascript:history.go(-2); </script>'; ?> Link to comment https://forums.phpfreaks.com/topic/190290-why-doesnt-this-work/#findComment-1003921 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.