W
weiwei
Hi all
I want to write a asp script, basically, that has drop down box in the
form, if user select Yes,
on the same page, a hidden textarea will show up, if user select No,
then nothing happen.
so far, my code is unsuccessful, in addition, I also got syntax error
on the response.write line
anyone has idea, please help me out, I would really appreciate your
help
below is my current code
<form name="form1" method="post" action="test13.asp">
<select name="test">
<option value=""></option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
<%strtest = request("test")%>
<%
If strtest = "Yes" Then
response.write "<textarea name="whatis" cols="50"></textarea>"
Else
End if
%>
</form>
I want to write a asp script, basically, that has drop down box in the
form, if user select Yes,
on the same page, a hidden textarea will show up, if user select No,
then nothing happen.
so far, my code is unsuccessful, in addition, I also got syntax error
on the response.write line
anyone has idea, please help me out, I would really appreciate your
help
below is my current code
<form name="form1" method="post" action="test13.asp">
<select name="test">
<option value=""></option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
<%strtest = request("test")%>
<%
If strtest = "Yes" Then
response.write "<textarea name="whatis" cols="50"></textarea>"
Else
End if
%>
</form>