putting pages together.
Moderator: General Moderators
putting pages together.
ok, all i want to know is how to use the switch statement so that when a certain link is clicked, text is displayed.
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
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;
}ok ty
i was doing the same thang b4 without the $_GET. thats y it didnt work.
thanx man
thanx man