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? Link to comment https://forums.phpfreaks.com/topic/126173-solved-pagephppage/ 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... } ?> Link to comment https://forums.phpfreaks.com/topic/126173-solved-pagephppage/#findComment-652458 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! Link to comment https://forums.phpfreaks.com/topic/126173-solved-pagephppage/#findComment-652460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.