Passing a query string that has a query string in it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Passing a query string that has a query string in it

Post by GeXus »

I'm having trouble passing a URL.. such as .. http://www.site.com/get.php?url=http:// ... p=1&x=asdf

on get.php when I try to get the url, i only get http://www.newsite.com?p=1... it leaves out the & and anything after...

How would I go about doing this?

thanks!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

rawurlencode() the query string (all the junk after "url=")
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

Nice, works perfect.. thanks!
Post Reply