Ampersands in URLs
Richard Frith-Macdonald
richard at tiptree
Wed Feb 5 00:17:12 PST 1997
Denis Howe wrote:
> Josep Egea <jes at rednsi.com> complained:
>
> > <http://myhost/run.nxp?par1=val1&imagen=myImage&par2=val2
> >
> > ... OmniWeb converts this into something like
> >
> > <http://myhost/run.nxp?par1=val1?n=myImage&par2=val2
>
> Ken Case <kc at omnigroup.com> replied:
>
> > When you want to use a literal ampersand (as in
> > a URL), you should always quote it (as "&").
>
> Far be it from me to question the wisdom of the
> experts but isn't this both wrong and irrelevant?
>
Ken Case is right as long as you are talking about a URL which is part of an
HTML document. If you are typing the URL in to a web browser as a location to
go to then you must NOT use the '&' quoting. Perhaps this is where the
confusion lies?
1. URLs in HTML should be like -
<A
HREF="http://myhost/run.nxp?par1=val1&imagen=myImage&par2=val2">call a
script with parameters</A>
2. URL typed into a web browser should be like -
http://myhost/run.nxp?par1=val1&imagen=myImage&par2=val2
More information about the OmniWeb-l
mailing list