habib009pk Posted July 15, 2009 Share Posted July 15, 2009 Dear Friends I have a little problem, i want to make a back button on the content pages which will go backward to the previous itemid page, and this process should be dynamic. Is there any code to put on the link for going in backward direction. I am working in joomla 1.5.10 Thanks and Best Regards Link to comment https://forums.phpfreaks.com/topic/166020-joomla-go-back-on-previous-itemid-pageposted-wed-jul-15-2009-1121-am/ Share on other sites More sharing options...
UnsuitableBadger Posted August 25, 2009 Share Posted August 25, 2009 <?php // Get Previous Page Itemid $parameters = end(explode("?",$_SERVER['HTTP_REFERER'])); $parameters = explode("&",$parameters); foreach ($parameters as $parameter) if (substr($parameter,0,6) == "Itemid") $Itemid = substr($parameter,7,strlen($parameter)-7); ?> OR $link = $_SERVER['HTTP_REFERER']; OR <a href="javascript:history.go(-1)">Back</a> Link to comment https://forums.phpfreaks.com/topic/166020-joomla-go-back-on-previous-itemid-pageposted-wed-jul-15-2009-1121-am/#findComment-905810 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.