P
Peter Woodsky
I'm trying to capture comments from a textarea field to add to a
database but I cannot figure out how to deal with escaping the data.
<form action="review.rhtml" method="post">
<input type="hidden" name="date" value="<%=today%>">
<label for="comment">Your Comment:</label>
<br>
<textarea name="comment" cols="60" rows="5"></textarea>
<p><input type="submit" value="Submit Review"></p>
</form>
Is there something I can do to "<%=comment%>" to handle '' "" etc.
Many thanks any help is appreciated
database but I cannot figure out how to deal with escaping the data.
<form action="review.rhtml" method="post">
<input type="hidden" name="date" value="<%=today%>">
<label for="comment">Your Comment:</label>
<br>
<textarea name="comment" cols="60" rows="5"></textarea>
<p><input type="submit" value="Submit Review"></p>
</form>
Is there something I can do to "<%=comment%>" to handle '' "" etc.
Many thanks any help is appreciated