You are here: Re: previous and next links « All PHP « IT news, forums, messages
Re: previous and next links

Posted by Arjen on 03/20/07 10:38

ten schreef:
> I have a page with images and when you click on a thumb a larger image
> opens. When the larger image opens the previous thumbs are not on the page
> so it makes it a little awkward to navigate to the next image because I have
> to go back with my browser back button, and then from the thumb page I click
> on the next image for the larger image, then again the back button, etc..,
> etc..
>
> Is there a standard bit of code I can use to create previous and next links
> on the larger image page?
>
How bout storing the request_uri ? Presivous page is the previous
request uri :-)

$lastpage = $_SESSION['thispage'];
$_SESSION['thispage']=$_SERVER['REQUEST_URI'];

echo '<a href = "'.$lastpage.'">go back</a>';

As for the 'next page link' Im guessing you van create that from the
currentpage. I dont know you db setup

Arjen
http://www.hondenpage.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация