Search found 5 matches
- Fri Jan 30, 2004 12:32 pm
- Forum: PHP - Code
- Topic: Including
- Replies: 8
- Views: 891
- Fri Jan 30, 2004 12:22 pm
- Forum: PHP - Code
- Topic: Including
- Replies: 8
- Views: 891
- Fri Jan 30, 2004 11:46 am
- Forum: PHP - Code
- Topic: Including
- Replies: 8
- Views: 891
Including
<?php // index.php. if (isset($_GET['id'])) { switch($_GET['id']) { case 0: echo 'Welcome to my homepage!'; break; case 1: echo 'My name is Foo'; break; default: echo 'Nope, no such page here...'; } } ?> <br /> <a href="index.php?id=0">Homepage</a> | <a href="index.php?id=1">I a...
- Fri Jan 30, 2004 11:26 am
- Forum: PHP - Code
- Topic: Newbie Question: multiple pages
- Replies: 10
- Views: 1255
- Tue Jan 27, 2004 11:18 pm
- Forum: PHP - Code
- Topic: ?something
- Replies: 2
- Views: 308
?something
See... I have index.php, page1.php and page2.php.. How do you make it so it'll always be blah.com/index.php but to show page1.php, it'll be like blah.com/index.php?=page1 or something like that. I forgot. Wasn't into PHP when i read on it, so someone refresh my memory please.