Top

Another ?page= (id) Script


PHP Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  2.0 (of 1 scores)
Date Added  Apr 27, 2007
Last Updated  Apr 27, 2007
Tags  id 

Introduction

Well, Just edit this and you should have something. o.o

~ Brandon


Its Another Script using things like:

index.php?page=index

Grab the Code

<?
if (!isset($_GET['page'])){
print "This Be The Homepage.";
};
if($_GET['page'] == 2){
print "Aye This be the Page 2";
};
?>
 
Edit this and your in!

Comments

  (2)  RSS
Brandon
Comments: 10
 
PHP Snippet:  Another ?page= (id) Script
Posted on May 4, 2007 6:01 pm
No Comments eh?
Blank
Comments: 6
 
PHP Snippet:  Another ?page= (id) Script
Posted on Sep 3, 2007 6:55 am
I'd just be worried about throwing up errors if i ran that. It only checks if the get field is set once. The way to do this without incurring errors would be to have all the checks for the pages _inside_ the "if (isset($_GET['page'])){". I'd also suggest using switch instead of "if" statements for the page numbers.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom