y2yang Posted January 26, 2010 Share Posted January 26, 2010 I don't think I did this part correctly: history.go(-1); <? if($session->logged_in){ history.go(-1); } else{ ?> Quote Link to comment Share on other sites More sharing options...
anupamsaha Posted January 26, 2010 Share Posted January 26, 2010 history.go(-1) is actually a JavaScript statement, not a PHP statement. Try this: <? if($session->logged_in){ echo ' <script type="text/javascript"> history.go(-1); </script>'; } else{ ?> Hope this will help. Thanks! Quote Link to comment Share on other sites More sharing options...
y2yang Posted January 26, 2010 Author Share Posted January 26, 2010 Thanks anupamsaha. Works like a charm. I owe you one. Quote Link to comment Share on other sites More sharing options...
anupamsaha Posted January 26, 2010 Share Posted January 26, 2010 You are welcome. Please do not forget to mark this topic as "solved". Thanks. Quote Link to comment 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.