PDA

View Full Version : Populating a Text Area Control


Abd
03-18-2003, 05:25 PM
Hi arnyinc / All,

need help on the below, I want to populate a text area and a radio button with some data from the database but, both
controls return no data when I used the below code;

<b>Gender:</b>
<input type="radio" name="gender" value="<%=Server.HTMLEncode(Gender)%>" <%if Gender="female" then response.write "checked" else response.write "disabled"%>>female<br>
<input type="radio" name="gender" value="<%=Server.HTMLEncode(Gender)%>" <%if Gender="male" then response.write "checked" else response.write "disabled"%>>male<br>
<p>
<b>Comment:</b>
<TEXTAREA NAME="Comment" ROWS=5 COL=15 value="<%=Server.HTMLEncode(Comment)%>"></TEXTAREA>

Roy Sinclair
03-18-2003, 06:23 PM
Are you putting anything into the "gender" and "comment" variables? The code you posted doesn't show where those values came from.