putting pages together.
Posted: Sun Jul 28, 2002 9:00 pm
ok, all i want to know is how to use the switch statement so that when a certain link is clicked, text is displayed.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$pid = $_GETї'pid'];
switch ($pid) {
case 0:
print "page id is 0.";
break;
case 1:
print "page id is 1";
break;
case 2:
print "page id is 2";
break;
default:
print "page id is something else";
break;
}