Menu
I am after the help of a genius.
I have a page called index.php and I would like to get variables from the url…
I can handle index.php?id=news, and echo something if that is in the url, by putting “news” into “id”.
But im after something a little more advanced…
index.php?news
skipping the “id=news” bit…
would just display news
e.g. the code i thought would work, and what i have at the moment is :
<?php
if($news) {
echo “news stuff tester message”;
} ?>
but that does not work (just a blank page).
anyone able to help?
… maybe an environmental variable?
kind regards,
gabe