blufish Posted May 24, 2008 Share Posted May 24, 2008 the URL of the page I'm editing this on is: http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 I wanna know how to use the red text so it finds if the person entered something like action=post. Any help is appreciated Link to comment https://forums.phpfreaks.com/topic/107048-solved-question-mark-in-url/ Share on other sites More sharing options...
garry Posted May 24, 2008 Share Posted May 24, 2008 $action = $_GET['action'] echo $action; Link to comment https://forums.phpfreaks.com/topic/107048-solved-question-mark-in-url/#findComment-548755 Share on other sites More sharing options...
blufish Posted May 24, 2008 Author Share Posted May 24, 2008 would $_POST work or is it just $_GET? thanks Link to comment https://forums.phpfreaks.com/topic/107048-solved-question-mark-in-url/#findComment-548760 Share on other sites More sharing options...
minidak03 Posted May 24, 2008 Share Posted May 24, 2008 would $_POST work or is it just $_GET? thanks When dealing with the URL you can only use $_GET Think of form data with method="POST" that is when you use the $_POST var but you always use $_GET when dealing with urls like mysite.com?action=true Link to comment https://forums.phpfreaks.com/topic/107048-solved-question-mark-in-url/#findComment-548762 Share on other sites More sharing options...
blufish Posted May 24, 2008 Author Share Posted May 24, 2008 thanks Link to comment https://forums.phpfreaks.com/topic/107048-solved-question-mark-in-url/#findComment-548763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.