Redlightpacket Posted March 5, 2010 Share Posted March 5, 2010 I am really puzzled how to work with these. I need a good information source that covers this topic broadly. I know the basics how query strings work and how to use them, but I need more information how to use them. Link to comment https://forums.phpfreaks.com/topic/194265-need-to-know-where-i-can-info-how-to-use-query-strings-at-in-php/ Share on other sites More sharing options...
cags Posted March 5, 2010 Share Posted March 5, 2010 I think you will have to provide some more information, your question is a little vague. Are you asking about the $_SERVER['QUERY_STRING'] value and how to work with it's variables? Link to comment https://forums.phpfreaks.com/topic/194265-need-to-know-where-i-can-info-how-to-use-query-strings-at-in-php/#findComment-1021997 Share on other sites More sharing options...
Redlightpacket Posted March 5, 2010 Author Share Posted March 5, 2010 I'm trying to make a profile page like on social networks and I can't get the id=333334444 to stay at the top of the page or in the query string when I send post a message. I want the id=3333334444 to stay in the query string all the time when i'm on the certain user profile page, for example like when I post a message on the profile page. This stuff has been a little tricky to figure out. But I need a little documentation on this subject or something that will help me. Thanks a lot, ~~~~Chris Clark Link to comment https://forums.phpfreaks.com/topic/194265-need-to-know-where-i-can-info-how-to-use-query-strings-at-in-php/#findComment-1022009 Share on other sites More sharing options...
newrehmi Posted March 5, 2010 Share Posted March 5, 2010 i think, maybe you should start learning a $_SESSION... It can keep your id logged in for all time, except if you logout. Link to comment https://forums.phpfreaks.com/topic/194265-need-to-know-where-i-can-info-how-to-use-query-strings-at-in-php/#findComment-1022016 Share on other sites More sharing options...
cags Posted March 5, 2010 Share Posted March 5, 2010 If you wish id=something to stay in the URL, then you will have to ensure that any URL you redirect to has... "id={$_GET['id']}" So for every link on the page that links to something else within the profile you would have.... echo '<a href="/profile.php?page=fave&id=' . $_GET['id'] . '" />'; Link to comment https://forums.phpfreaks.com/topic/194265-need-to-know-where-i-can-info-how-to-use-query-strings-at-in-php/#findComment-1022017 Share on other sites More sharing options...
Redlightpacket Posted March 5, 2010 Author Share Posted March 5, 2010 I'll try that, but I'm not sure it will work, but will give it a try any way Link to comment https://forums.phpfreaks.com/topic/194265-need-to-know-where-i-can-info-how-to-use-query-strings-at-in-php/#findComment-1022021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.