SPLITTING DETAIL PAGES - Aug 3rd, 2010


Instead of a single detail page for a record I needed to have some of the detail information on one detail page and
other information on another detail page and link the 2 of them so I could navigate back and forth between them.

I was lost until Dave from Interactive Tools showed just how easy that was. He said:
You just need to pass the record number along when you link back and forth between detail pages.

So if you're on detailpage1.PHP and you've loaded record 23, then you'd like to link to detailpage2.PHP, use this:



<a href="detailpage2.php?<?PHP echo $record['num'] ?>”>link text to detail page 2</a>



Another way to do it, if you just want to pass along whatever is after the ? in the url is like this:



<a href="detailpage2.php?<?PHP echo @$_SERVER['QUERY_STRING'] ?>”>link text to detail page 2</a>





The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service