Search found 5 matches

by pac604
Fri Jan 30, 2004 12:32 pm
Forum: PHP - Code
Topic: Including
Replies: 8
Views: 891

That confused me, but thanks anyways. I'll read some more tutorials to understand both of these coding. Thanks
by pac604
Fri Jan 30, 2004 12:22 pm
Forum: PHP - Code
Topic: Including
Replies: 8
Views: 891

Would you be able to do a different format then? I assume you know what concept I would wan't to do. So yea.. Is their any other way? I remember there is, much simpler. No need for the other codes.
by pac604
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...
by pac604
Fri Jan 30, 2004 11:26 am
Forum: PHP - Code
Topic: Newbie Question: multiple pages
Replies: 10
Views: 1255

Alright.. I use the one that JAM said. Well, so I put that on my index.php. How will I let the index.php know which files are the ones that's suppose to be id? And can't I change the id to something else?
by pac604
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.