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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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'] . '" />'; Quote Link to comment 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 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.