Jukka K. Korpela wrote:
The trailing "?" is not a problem since it is ignored by servers unless
you do something extravagant to make them treat it in some special way.
Actually, "?" followed by a string is ignored if the server has not been
programmed or configured handle it.
If you use method="POST" in the <formtag, the "?" won't be appended,
but who cares?
Just in case anyone is curious, a CGI script is passed the URI in the
environment variable REQUEST_URI.
I have some webpages that use that value to build other links to the
same page, but with optional parameters.
So starting with
http://server.com/page that submits a form to the same
URL with ACTION=GET, I end up with the URI being
http://server.com/page?
If I now use this to build links with parameters, by appending "?parms"
to the URI value then I end up duplicating the "?". After a few passes,
I can end up with several "?"s in a row. Of course, it is easy to work
around this, but finding a way to stop the "?" getting into the browsers
Location: field in the first place would be the best in many ways.
Especially as a way of stopping the email from people with nothing
better to do than ask me why my URL's sometimes have an "?" on the end.
And yes, I have had such mail. With sufficient users, you eventually get
asked every conceivable question. I suppose eventually I'll receive the
complete works of Shakespeare, as a mistype.
See
http://www.swiftys.org.uk/wiz?487
--
Steve Swift
http://www.swiftys.org.uk/swifty.html http://www.ringers.org.uk