php3-list | 199903
Date: 03/23/99
- Next message: Langnickel, Christoph: "[PHP3] ORA-01019: unable to allocate memory in the user side"
- Previous message: Dan Delaney: "Re: [PHP3] self-referential URLs"
- In reply to: Daniel Lashua: "Re: [PHP3] self-referential URLs"
- Next in thread: Alex Rice: "Re: [PHP3] self-referential URLs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 23 Mar 1999, Daniel Lashua wrote:
> Should the ? and the = also be endcoded, for safety reasons? Is it correct
> that if I were to place the "&" with the HTML encoded (%34 or whatever)
> equivalent it would not parse as expected?
Don't confuse the need to encode characters for display with the need to
encode characters for submittal.
When writing an URI that mimics a GET form submission, you need to change
the & to & because you're never supposed to have an unencoded & in a
HTML document. (Just like you can't have a <, >, or ".) OTOH, ? and =,
while not allowed unencoded in a URI, are valid characters in HTML.
The user-agent is responsible for understanding that & is "really" &
for purposes other than rendering and should also translate non
alphanumberic characters to the appropiate entities when the link (or
form) is clicked on (submitted) and sent to the server.
So, you could probably use $ as a synonym for & and not encode ?
and =.
Now, I haven't actually tried all this, of course, with every browser, so
I make no claims about the implementation of this spec. :)
-adam
-- / adam maccabee trachtenberg | visit college life online \ \ adam <email protected> | http://www.student.com /-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Langnickel, Christoph: "[PHP3] ORA-01019: unable to allocate memory in the user side"
- Previous message: Dan Delaney: "Re: [PHP3] self-referential URLs"
- In reply to: Daniel Lashua: "Re: [PHP3] self-referential URLs"
- Next in thread: Alex Rice: "Re: [PHP3] self-referential URLs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

