Jump to content

Need to know where I can info how to use query strings at in php.


Redlightpacket

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.