From: Keith G. <ke...@ka...> - 2003-03-13 16:59:49
|
using an ampersand is part of the http protocol as a parameter separator. its not specific to php, all server-side processing engines use it. Pete Prodoehl wrote: > > Ok... so from further testing, this pans out to be true. > > I can use this in my html: > > http://jedit.org/index.php?page=screenshot&image=10 > > and it works fine when I view the page in my browser and click on the > link, since the browser does the right thing. > > With many other sites/apps I can paste a url with &'s into the > location field and it works fine. In fact this might be the first site > it didn't work on... (Just tested with ht://Dig, works as I expected...) > > Is the ; as a parameter separator a PHP thing? > > It still seems weird to me, but then again, many things do ;) > > > Pete > > mike dillon wrote: > >> begin Pete Prodoehl quotation: >> >>> but it doesn't validate because of the & so I need to use: >>> >>> http://jedit.org/index.php?page=screenshot&image=10 >>> >>> which seems to work on every other server in the world... except >>> jedit.org >>> >>> Something seems not right... Is PHP at fault? >> >> >> >> The browser needs to unencode any entities in the URL before >> transmission. If that doesn't happen, the server can't property parse >> the URL (since "&" looks exactly like adding a valueless param named >> "amp" because both "&" and ";" are URL parameter separators). >> >> -md >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by:Crypto Challenge is now open! Get >> cracking and register here for some mind boggling fun and the chance >> of winning an Apple iPod: >> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! Get > cracking and register here for some mind boggling fun and the chance > of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en |