Hi Folks,<br> <br> Hope your all ok.<br> <br> I was after some basic advice, regarding setting up my site using php (this is my first php project).<br> <br> I have my index page with two divs, one for the menu and one for the content where I pull in the different pages, by setting a variable thats the name of the page, in the url. Below is the code I have in my index.<br> <br> <?php<br> if (isset($_GET['page'])) {<br> $page = $page . "." . "php";<br> include("$page");<br> }<br> else {<br> include("welcome.php");<br> }<br> ?><br> <br> This works fine, but if I want to redirect the user to a different page using the header function, I get an error because there is html on my index page, before the php code.<br> <br> How do you guys go about setting up your sites in a resourceful way?<br> <br> Am I just better off sticking to including a header and a footer on all my pages?<br> <br> Any advice would be much appreciated.<br> <br> Many thanks.<br>
<br> Matt<br> <p>
                <hr size=1>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
Play <a href="http://santas-christmas-party.yahoo.net/">Santa's Celebrity Xmas Party</a>, an exclusive game from Yahoo!
</font>