abid786 Posted May 3, 2008 Share Posted May 3, 2008 Hello, (New guy here) I couldn't imagine what to search for, so here goes my question. On some websites, certain pages are linked to through the use of "id"s. For example this page: http://www.topleftpixel.com/MT/mt-comments.cgi?entry_id=2284. My question is, how can PHP pick up that "entry_id=xxx" (to essentially use for database purposes)? Thanks! Abid Link to comment https://forums.phpfreaks.com/topic/103951-quick-question-about-_post/ Share on other sites More sharing options...
DarkWater Posted May 3, 2008 Share Posted May 3, 2008 $id = $_GET['entry_id']; You use $_GET for that. =) Link to comment https://forums.phpfreaks.com/topic/103951-quick-question-about-_post/#findComment-532173 Share on other sites More sharing options...
abid786 Posted May 3, 2008 Author Share Posted May 3, 2008 Thank you for the extremely fast reply! Link to comment https://forums.phpfreaks.com/topic/103951-quick-question-about-_post/#findComment-532174 Share on other sites More sharing options...
abid786 Posted May 3, 2008 Author Share Posted May 3, 2008 OK one last question, relating to the previous question. If one page (with a form) has an ID in its address (like the example provided in my last post), how can it pass that ID to another page, which the form's submit button links to? Thanks again! This is a great community!! Link to comment https://forums.phpfreaks.com/topic/103951-quick-question-about-_post/#findComment-532267 Share on other sites More sharing options...
abid786 Posted May 3, 2008 Author Share Posted May 3, 2008 Never mind I got it. I think $SERVER_[HTTP_REFERER] should do it. Link to comment https://forums.phpfreaks.com/topic/103951-quick-question-about-_post/#findComment-532273 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.