Jump to content

[RESOLVED] Passing a variable


holyearth

Recommended Posts

Pretend this is a url I'm loading:

http://www.example.com/index.php?first=dog&second=donkey+goat

In index.php (referenced above), I have:

$first = $HTTP_GET_VARS['first'];
$second = $HTTP_GET_VARS['second'];

So,
first spits out: dog
second spits out: Donkey Goat

I want the second to spit out Donkey%20Goat    -OR-  Donkey+Goat

In other words, I want it to spit out the LITERAL value of the passed variable.

Thanks for your time.
Link to comment
https://forums.phpfreaks.com/topic/30182-resolved-passing-a-variable/
Share on other sites

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.