HTMLBuilder and <A HREF='script.py?foo=bar&ding=bats'>yeah teah</A>

Ben Skelton skeltobc at mailandnews.com
Thu Mar 9 09:56:26 EST 2000


Adrian Eyre wrote:
> 
> > b.startElement ('a', {'href': 'script.py?foo=bar&ding=bats'})
> >
> > [snip]
> >
> > <HTML><A HREF="script.py?foo=bar&ding=bats">Press me</A></HTML>
> >
> > note the '&' in the href argument.
> 
> Indeed. It's substituted for the ampersand, being illegal in an HTML
> document.
> 
> > How can I do this properly?
> 
> What do you mean by properly?


I want to pass arguments to the script.py. I thought the way to do this
was
via the url
http://server/cgi-bin/script.py?argument1=value1&argument2=value2
ie an ampersand separated list of argument=value.

The idea is that when different hyperlinks are followed unique sets of
arguments
can be passed to the script.

--Ben



More information about the Python-list mailing list