Join the forums now, and start posting to receive access to our Scripts Vault!
I can send you pics of my cocks if you want reference.
<?phpecho "<a href=\"page.php\">Home</a> | <a href=\"page.php?page=1\">Page 1</a> | <a href='page.php?page=2'>Page 2</a> | <a href='page.php?page=3'>Page 3</a><br>";$page=abs((int) $_GET['page']); $pg=array("1","2","3");if(!in_array($page,$pg) and isset($_GET['page'])){ die("Page Not Found");}switch($page){case 1:echo" Page 1";break;case 2:echo" page 2";break;case 3:echo" page 3";break;default :echo "Hello and welcome";}?>
Not sure what exactly you are looking for but switch may work.Code: [Select]<?phpecho "<a href=\"page.php\">Home</a> | <a href=\"page.php?page=1\">Page 1</a> | <a href='page.php?page=2'>Page 2</a> | <a href='page.php?page=3'>Page 3</a><br>";$page=abs((int) $_GET['page']); $pg=array("1","2","3");if(!in_array($page,$pg) and isset($_GET['page'])){ die("Page Not Found");}switch($page){case 1:echo" Page 1";break;case 2:echo" page 2";break;case 3:echo" page 3";break;default :echo "Hello and welcome";}?>I think that does what you are looking for but not sure if it helps on load.[/quoteYes, But how do I make it so when I click on page two it can be its own page?Say for example have a different picture on each page without the others showing.
If you click on page 2 it should only show what you have coded for page 2. I tested it locally and each page showed there own content. it is still all the same file but the code dose not run unless the page points to it.
<?phpswitch($page){case 1:echo" Page 1"; //edit for page 1break;case 2:echo" page 2"; //edit for page 2break;case 3:echo" page 3"; // edit for page 3break;default :echo "Hello and welcome"; //edit for the base page}?>
This is what you edit for each pageCode: [Select]<?phpswitch($page){case 1:echo" Page 1"; //edit for page 1break;case 2:echo" page 2"; //edit for page 2break;case 3:echo" page 3"; // edit for page 3break;default :echo "Hello and welcome"; //edit for the base page}?>
No prob. If you need help adding more pages to it let me know as you have to edit some things on it. I add a very small security feature not sure if it works very well but it should help a bit.
It has its uses. Small sites mainly but can go well with other
Quote from: toxin on February 02, 2009, 01:44:58 PMIt has its uses. Small sites mainly but can go well with other Mhm, I still don't get it. Okay, for small sites... But what other purpuses can it have?