XHTML and the & in url's.

nospam_at_geniegate.com
Date: 12/26/04


Date: Sun, 26 Dec 2004 14:59:50 GMT

I've been trying to convert my habits over to XHTML.

One stumbling block, does one have to use & in URL's to separate
form variables? foo

Of course, &name is choked on, because it's an entity reference w/out
a semicolon.

One thing I've seen CGI.pm (from the perl world) do is accept semi-colons:

<a href="foo.cgi?q=1;name=jerry">foo</a>

This makes more sense to me, but is it an actual standard? if so, how would
I get PHP to use it instead of &? (without any editing of PHP's .ini files)

Going through and changing & to &amp; in my URL's would probably break lots
of things and be harder to maintain. Short of parsing the query string myself,
there doesn't seem to be a lot of alternatives.

Ideas? Any other solutions?

Jamie

-- 
http://www.geniegate.com                    Custom web programming
guhzo_42@lnubb.pbz (rot13)                User Management Solutions


Relevant Pages

  • Re: Small record deck out/in to mini hi fi?
    ... separate phono preamp to go between? ... pre-amp, or get a separate pre amp to use the already existing turntable. ... major in electrical engineering,freelance electrician ...
    (rec.audio.misc)
  • Re: Shop wire for sale
    ... It is exactly what the power company recommends. ... told them that I was running hundreds of feet and I wanted 200 amp. ... and you need a separate safety ... To run a sub-feed out to a shed from the house service you would use ...
    (rec.crafts.metalworking)
  • Re: ampersand in urls when using xhtml 1.0 strict
    ... My web server is clearly seeing & and the browser is ... when displaying xhtml? ... GridView does not turn an & into a & but the Repeater does. ...
    (comp.infosystems.www.authoring.html)
  • Dual amp for FX chain
    ... separate amp for just your FX? ... Digitech Bass synth-wah, DigiT multi-chorus, DigiT Bass driver, Marshall ...
    (alt.guitar.bass)
  • Re: code does not validate
    ... Since I am not firing blanks, and I am not messing with XHTML, ... and I am not using & ...
    (alt.html)