[thelist] Passing URL as a GET variable

Anthony Baratta Anthony at Baratta.com
Tue Oct 21 15:26:43 CDT 2003


At 12:26 PM 10/21/2003, Tony Grimes wrote:
>This may be a stupid question, but is it alright to pass a URL or file name
>as a GET variable? For example:
>
>http://www.example.com/some_script.php?location=http://www.somesite.com
>http://www.example.com/some_script.php?location=some_page.php

You need to URL Encode the ://.

http://us3.php.net/manual/en/function.urlencode.php

-- 
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."



More information about the thelist mailing list