including anchor (#) with cgi parameters?

John Chambers jc at trillian.mit.edu
Tue Jan 29 12:06:18 EST 2002


| I remember having this problem when working on the international sites at
| Ingram.  As I recall, the specifications for things state that the # is
| not "part of the url" but rather a "fragment" and has to go at the
| very end.  So a correct url would be:
|
|    http://www.me.com/cgi-bin/script.cgi?param=2#place

This is correct, mostly because the #place has to be handled by  your
browser. There's nothing at all that the script can do with it. Maybe
it could verify that a <a name="place"> tag  is  included,  but  this
isn't likely, because there's not a lot that any CGI script can do if
the tag isn't in the data.

The best prediction is that some browsers implement this, and  others
don't.  It looks like you have one that doesn't.

In any case, none is likely to pass the #place portion to the server.
I  wonder  if there are any servers at all that would know what to do
with it?




More information about the Discuss mailing list