ok, i was in a hurry...
I'll post the pages full code
I am making a site to put up an e zine and wany the page to load up with the first page 1.jpg which it does ok...BUT i want the NEXT link to link to ?page=2 and once it is on page 2, a back link appearing pointing to ?page=1 and a NEXT link pointing to ?page=3
Also is there a way that when it runs out of jpgs to display it says, end of magazine or somethng without me having to edit files etc
<?
if (!isset($page)) {$page = "1";}
?>
<?
if(file_exists("$page.jpg")){
echo "<img src=\"$page.jpg\">\n";
} else {
echo "Error 404 <b>$page.jpg</b> not found. Please report to <A href=\"mailto:groombros@aol.com\">webmaster</A>\n" ;
}
?>
<? if ($page=="1") {
echo "<a href=\"?page=($page + 1)><font size=\"6\"><strong>NEXT </strong></font><strong></a>"
;
} else {
echo "<a href=\"?page=($page - 1) ><font size=\"6\"><strong>BACK </strong></font><strong> </a> <a href=\"?page=($page + 1) ><font size=\"6\"><strong>NEXT </strong></font><strong> </a>"
;
}
?>