It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

News

Log In Sponsors
Partner Sites

How can I incorporate an if statement here?



I'm having trouble with this bit of code
[code:2sto3upy]$ page = $ _GET [' page ' ];
echo "<h1>" . strtoupper( $ page) . "</h1>";
@ include "inc/" . $ page . ". php";

[/code:2sto3upy]
is there a way to make it so that if the url is simply index.php it loads the content of the home page?

Click here to read the whole forum topic