Jump to content

Adding vars to existing strings


ShaolinF

Recommended Posts

One method would be to use $_SERVER['QUERY_STRING'] to append the current values, but it's probably not the best, you'd need to do some check though to check your values so for example you don't end up with ?p=1&p=2.  Also you could of course use...

 

if(isset($_GET['value'])) {
  $url .= "value=$something";
}

 

I swear there's a simpler way of doing it, but it's currently escaping me.

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.