?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?help with making links (?page=1)
Author:??(---.cox-internet.com)
Date:???07-10-03 23:04

ok im having trouble setting it up to say:
404 $page could not be found

so when people chage the last number: (example: myname.com/index.php?page=2 to myname.com/index.php?page=200) and theres no such page it will so that.

this is my code

if(isset($page))

switch ($page)
{
case "1":
include("2.php");
case "2":
break;
include("2.php");
break;
default:
include("index2.php");
break;
}
}
else include("index2.php");

?>

?Topics Author? Date
?help with making links (?page=1)??new
Matt 07-10-03 23:04?
?Re: help with making links (?page=1)??new
bastien 07-11-03 16:14?
?Re: help with making links (?page=1)??new
Matt 07-11-03 22:52?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
????

Provided By
Phorum