Jump to content

[SOLVED] get vars from url


Shu

Recommended Posts

[quote author=Orio link=topic=119407.msg489040#msg489040 date=1166636075]
[code]echo $_GET['abc']; //output- thisisabc
echo $_GET['def']; //output- thisisdef[/code]

Orio.
[/quote]


this will only work if thats the current url the user is requesting. but in my case not.

the url is generated on the script itself.

[quote author=kenrbnsn link=topic=119407.msg489045#msg489045 date=1166636131]
You should look at the functions [url=http://www.php.net/parse_url]parse_url()[/url] and [url=http://www.php.net/parse_str]parse_str()[/url].

Ken
[/quote]

thanks the parse_str function is what i needed

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.