[PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
I'm trying to pass a URL as a var in a URL: The url var should equal: http://www.someothersite.com/index.php?something=somethingx=100y=200 And I'm passing it to this URL: http://www.somesite.com/index.php?var=val So if I use:

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Adam Voigt
http://www.php.net/manual/en/function.urlencode.php Pass it through that function (or one of the others) on: http://www.php.net/manual/en/ref.url.php On Tue, 2002-12-03 at 12:01, Shawn McKenzie wrote: I'm trying to pass a URL as a var in a URL: The url var

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
Great thanks! Since I'm doing this from an anchor or in the browser location bar, I just replaced the in the url var with %26. Works great! -Shawn Adam Voigt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.php.net/manual/en/function.urlencode.php