In article <c1**************************@posting.google.com >, David
<da***@scene-double.co.uk> writes
<A HREF=""Schedule.asp?JobNumber=" & RS("JobNumber") & "&PONumber=" &
RS("PONumber") & """>" & RS("JobNumber") ONCLICK= popup() & "</a>
Just as an aside, this will generate invalid HTML. This might not cause
problems for the majority, but will do so for some people (like Netscape
4.x users !!).
When building URLs, you must use HTML characters in place of things like
&. Don't have ...
<a href="mypage.asp?id=12&type=ferret">click here</a>
use ...
<a href="mypage.asp?id=12&type=ferret">click here</a>
Note that the "&" has been changed to the HTML equivalent of &
(don't forget the ; at the end). Failure to do this can cause some
browser to incorrectly interpret the & as the start of a special
character sequence. In the above case, it would think that &type is
supposed to be an HTML entity and not know what to do with it. This may
cause the URL to be incorrectly parsed.
I would build the full URL in a string variable, then user
Server.HTMLEncode on it before writing it out.
HTH
--
Alan Silver
(anything added below this line is nothing to do with me)