hullghost
10-31-2003, 05:13 PM
Hello All,
I have a little code issue that you might be able to help with!
I have a scrolling text box on the page.
Say the text box is called "comments"
So the code to put the stuff in the database looks like this (Just an example)
<%
MYDATBASEOBJECT.addnew
MYDATBASEOBJECT("comments") = Request.for ("comments")
MYDATBASEOBJECT.update
%>
<html>
<form method="POST">
<td width="374"><textarea rows="6" name="comments" cols="44"></textarea></td>
<p align="center"><input type="submit" value="Submit New Thread" name="submit"></p>
</form>
</html>
Very Roughly anyway!
Well it works fine apart from the fact that when a user presses "Return" for a new line it is reflected in the database as a space.
I need a Return Press (Carriage Return) to be recognised as a new line in the database.
Any Ideas?
I have a little code issue that you might be able to help with!
I have a scrolling text box on the page.
Say the text box is called "comments"
So the code to put the stuff in the database looks like this (Just an example)
<%
MYDATBASEOBJECT.addnew
MYDATBASEOBJECT("comments") = Request.for ("comments")
MYDATBASEOBJECT.update
%>
<html>
<form method="POST">
<td width="374"><textarea rows="6" name="comments" cols="44"></textarea></td>
<p align="center"><input type="submit" value="Submit New Thread" name="submit"></p>
</form>
</html>
Very Roughly anyway!
Well it works fine apart from the fact that when a user presses "Return" for a new line it is reflected in the database as a space.
I need a Return Press (Carriage Return) to be recognised as a new line in the database.
Any Ideas?