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 Quote Link to comment Share on other sites More sharing options...
garry Posted May 24, 2008 Share Posted May 24, 2008 $action = $_GET['action'] echo $action; Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
blufish Posted May 24, 2008 Author Share Posted May 24, 2008 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.