View previous topic :: View next topic |
Author |
Message |
jeffbeh -
Joined: 26 Mar 2003 Posts: 3
|
Posted: Sat Jul 19, 2003 1:04 am Post subject: PHP NAVIGATION HELP!! |
|
|
Hi, How do you make a php code where you can be fancy? like htp://blah.com/main.php?id=boo
etc. I found one, but it doesnt seem to work on abyss? Anyone help! THANK YOU!!
<?php
switch($id) {
default:
include('main.htm');
break; case "about":
include('about.htm');
}
?> |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Sat Jul 19, 2003 6:51 am Post subject: |
|
|
Make sure you have the redirect main.html and about.html in side your htdocs or were ever your script is , if you put mail.html instead of /main.html , it assumes that that html file is in the same folder as your php script , make sure the address poit correctly , try using
http://Your-IP/main.html ,
so the script works , I haven't tested it but I might later. :idea:
------------------------------------------------------------------------------------ _________________ This web server is the best ! |
|
Back to top |
|
|
jeffbeh -
Joined: 26 Mar 2003 Posts: 3
|
Posted: Sat Jul 19, 2003 7:00 am Post subject: |
|
|
tried, nope. still didnt work :( |
|
Back to top |
|
|
jeffbeh -
Joined: 26 Mar 2003 Posts: 3
|
Posted: Sat Jul 19, 2003 7:48 am Post subject: |
|
|
got it fixed. i know whats wrong. |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Sat Jul 19, 2003 1:27 pm Post subject: |
|
|
So tell us , what was the problem , discussing problems to people may help them in the future :D _________________ This web server is the best ! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Jul 19, 2003 2:58 pm Post subject: Re: PHP NAVIGATION HELP!! |
|
|
We guess that you received "Undefined variable" error messages. Please search for "Undefined variable" on these forums and you'll find how to fix your script. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
SonnyB -
Joined: 19 Jun 2003 Posts: 42 Location: New York USA
|
|
Back to top |
|
|
|