Boxerman Posted September 28, 2008 Share Posted September 28, 2008 hi guys... i was wondering how do you do the thing where say you had index page and it had Todays News (CLICK HERE) and some site have a url on CLICK HERE like "www.worldnews.com/news.php?today" and it shows todays but it you went to just news.php it will show all... (im not after a news on like) if you get me? Quote Link to comment Share on other sites More sharing options...
F1Fan Posted September 28, 2008 Share Posted September 28, 2008 You need code in news.php that looks to see if the request "today" variable is set. <?php if (isset($_REQUEST['today'])){ // do whatever... } ?> Quote Link to comment Share on other sites More sharing options...
Boxerman Posted September 28, 2008 Author Share Posted September 28, 2008 so with that code if i add... ?today to the end of the file it will display? Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.