Thanks,
Omicron
Do you want us to make php code for you, or do you want to learn how to do
it? If you answered correctly, then please proceed to the php manual and
start the learning process ;)
In pseudo-code
if( something == news )
{
print newspage
}
else
{
print mainpage
}
Omicron
yes
--
Alan Walkington
Technical Staff
United Defense, San Jose
>
> Omicron
>
>
very simple.
if($something=="news")
{
include_once("news.php");
}
elseif(...)
{
...
}
Yes you're right, the method is GET for data sent using the URL. But if
you're intending to use this method be sure to check for special characters,
I've lost count of the number of websites that have this problem:
http://www.someserver.com/index.php?page=../../
Displays:
Warning: Unable to access ../../ in /usr/local/www/html/index.php on line x
Hopefully you can appreciate why this is...
HTH
powerboy
--
email: powe...@rarextreme.com
www: http://www.rarextreme.com