[thelist] Passing & thru a form using ASP

Craig cd-ml at aardvark.net.au
Wed Aug 14 13:27:00 CDT 2002


Hi, does anyone know why the ASP code below doesn't pass the string '&' thru when submitting the form. Even though '&' is
the value for the text field, only '&' gets submitted

note: remove the first dot after <

<.!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<.html>
<.head>
<.title>Untitled Document<./title>
<.meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<./head>

<.body>
<.form action="test2.asp" method="post">
<.input type="text" value="&amp;" name="testtext">
<.input type="submit" value="submit">
<./form>
<%=request.form("testtext")%>
<./body>
<./html>


Thanks,
Craig.





More information about the thelist mailing list