Zozart
28-02-2003, 00:41
Okay, im just getting the hang of this php thing right. I've got my nice and dandy (and valid xhtml :D) layout, and in the middle i've got (zyon being my variable):
<?php include ("$zyon.html"); ?>
now, that spits out an error message once that page (index.php) is uploaded and viewed, which is meant to happen anyway. So, I enter this url > index.php?zyon=home < and up comes the home page in the middle of the layout. Perfect. Now, what i'd like to know, is how to have stuff on my index page? ie. a php news script. Since at the moment, it seems to me, that to get to my news page im gonna have to type 'index.php?zyon=home' which won't be nice for visitors since i'm gonna be hosting this on a proper domain.
So how can I get the home/news page to display automatically upon the index.php opening? (and then obviously going away when another link is clicked)? Any help appreciated, thanks!
<?php include ("$zyon.html"); ?>
now, that spits out an error message once that page (index.php) is uploaded and viewed, which is meant to happen anyway. So, I enter this url > index.php?zyon=home < and up comes the home page in the middle of the layout. Perfect. Now, what i'd like to know, is how to have stuff on my index page? ie. a php news script. Since at the moment, it seems to me, that to get to my news page im gonna have to type 'index.php?zyon=home' which won't be nice for visitors since i'm gonna be hosting this on a proper domain.
So how can I get the home/news page to display automatically upon the index.php opening? (and then obviously going away when another link is clicked)? Any help appreciated, thanks!