>>>>> "Paul" == Paul Campbell <[EMAIL PROTECTED]> writes:

Paul> <a href="helpdesk.cgi?action=test_modify&name=$unique_id">
>> 
>> That's illegal HTML.  You need "&" encoded as "&amp;" there.

Paul> If I was trying to *display* the ampersand in the browser then yes.
Paul> In this instance it is part of a URL, which isn't 'displayed' and
Paul> doesn't get interpreted the same way.

Sure it does.  HTML entities are required *for attributes* as well as
plain text.

Paul> For example:

Paul> <p>
Paul>   <a href="http://www.somewhere.com/script?page=2&mode=examples";>
Paul>           Page 2 &amp; examples
Paul>   </a>
Paul> </p>

You're getting the benefit of error-correction.

Try that again setting the variable "copy" to "3".
Or "amp" to 7.

Don't abuse the error correction.  Just *code it right*.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to