At 17:23 -0500 1/8/03, Keith C. Ivey wrote:
On 8 Jan 2003, at 12:08, Paul DuBois wrote:
You must perform the conversion yourself, displaying the URL both
as the href atttribute and body text of an <a> tag. Don't forget
to URL-encode it for use in the attribute, and HTML-encode it for
use in the body text.
I think Paul meant to say you should HTML-encode it for both the HREF
value and the link text. URL-encoding is for *parameters* that are
going to become part of a URL. You wouldn't URL-encode a whole URL
(unless you were passing it as a parameter in another URL -- perhaps
the URL of a redirection script). A URL-encoded URL wouldn't work as
a link, since the slashes would have been changed to '%2F', among
other things.
Correct, thanks.
The HTML-encoding is only necessary if the URL could contain an
ampersand (or less-than, greater-than, or quote, but URLs aren't
supposed to have those characters in them).
[Filter fodder: SQL]
--
Keith C. Ivey <[EMAIL PROTECTED]>
Tobacco Documents Online
http://tobaccodocuments.org
Phone 202-667-6653
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php