Hyaku_ Posted January 7, 2007 Share Posted January 7, 2007 Hi!I have seen some sites have URL's like:[code]somesite.com/somepage.php?variable[/code].I have a page user.php, but when user want to loggout, I pass the query by URL:[code]user.php?logout=true[/code]Instead I would like to just go with:[code]user.php?logout[/code]but how can I check if that variable is there or no? When I do $_REQUEST['logout'], It doesn't return anything. Thanks! Link to comment https://forums.phpfreaks.com/topic/33167-solved-indexphpvariable-how-to-check-if-its-set/ Share on other sites More sharing options...
kenrbnsn Posted January 7, 2007 Share Posted January 7, 2007 Use[code]<?phpif (isset($_GET['logout']))?>[/code]to see if it is set.Ken Link to comment https://forums.phpfreaks.com/topic/33167-solved-indexphpvariable-how-to-check-if-its-set/#findComment-154691 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.