Jump to content

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


Redlightpacket

Recommended Posts

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

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'] . '" />';

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.