[thelist] Passing URL as a GET variable

M.G. Noriega manuel at simplelogica.net
Tue Oct 21 15:45:30 CDT 2003


El mar, 21-10-2003 a las 21:26, Tony Grimes escribió:
> 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
> 
> Does this conform to spec? Are there any browsers that will get confused by
> this?


It's OK, just remember to urlencode() it

http://php.net/urlencode


-- 
Manuel González Noriega
Simplelógica, construcción web @ http://simplelogica.net
Logicola es el weblog de Simplelógica http://simplelogica.net/logicola/



More information about the thelist mailing list