lotrfan Posted October 15, 2007 Share Posted October 15, 2007 Just like the topic title... What is the Difference Between $_POST, $_GET, and $_REQUEST? Thanks in Advance. Quote Link to comment https://forums.phpfreaks.com/topic/73265-what-is-the-difference-between-_post-_get-and-_request/ Share on other sites More sharing options...
MadTechie Posted October 15, 2007 Share Posted October 15, 2007 $_POST = POST Requests (normally from a form) $_GET= Get Requests (from the URL) or a form $_REQUEST Either Get or Post Requests Quote Link to comment https://forums.phpfreaks.com/topic/73265-what-is-the-difference-between-_post-_get-and-_request/#findComment-369623 Share on other sites More sharing options...
lotrfan Posted October 15, 2007 Author Share Posted October 15, 2007 How would PHP include something in a URL? Quote Link to comment https://forums.phpfreaks.com/topic/73265-what-is-the-difference-between-_post-_get-and-_request/#findComment-369625 Share on other sites More sharing options...
MadTechie Posted October 15, 2007 Share Posted October 15, 2007 example <?php echo "Data=".$_GET['data']; echo "<br>"; echo "ID=".$_GET['id']; $newid = ($_GET['id'] + 1); echo "<a href='example1.php?id=$newid&data=test'>test</a>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/73265-what-is-the-difference-between-_post-_get-and-_request/#findComment-369629 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.