I define my textareas like this (perl cgi scritps):
<TEXTAREA NAME="portfolio-portdesc" ROWS="5" COLS="65" 
WRAP="SOFT" >$portdesc</TEXTAREA>

Note the WRAP="SOFT" flag

I then simply insert the users information into the mysql table and when it 
is called up in the HTML form, it retains its carriage returns.

You do need to ensure that quotes are handled correctly.

>Currently I am using a standard <TEXTAREA></TEXTAREA> field for 
>information input to the MySQL database. When I display the allready 
>information in the text fields to allow the user to manipulte the 
>information, the formatting includes any carrige returns that have been 
>entered. However when I display the text using the mysql_fetch_array the 
>returns are no more, and instead are only displayed as a single space 
>between the next word. I know this is due to the way that HTML reads 
>whitespace, but how can I force the formatting of the text so it is 
>displayed how the user intended.
>I have tried to use ADDSLASHES() to reformatt the variables befofe 
>entering them into the tables, but I am unsure if this is the right 
>method. And if so, how can I convert the \n to <br>?
>I am not sure if this is a question that I should be asking to this 
>maillist or not, but I thought I would give it a shot.
>
>MySQL = 3.23
>Language= PHP
>
>Any help would be greated with open arms.
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>---------------------------------------------------------------------
>Before posting, please check:
>   http://www.mysql.com/manual.php   (the manual)
>   http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail <[EMAIL PROTECTED]>
>To unsubscribe, e-mail <[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


Christopher R. Jones, P.Eng.
14 Oneida Avenue
Toronto, Ontario M5J 2E3
Tel. 416 203-7465
Fax. 416 203-8249
Email [EMAIL PROTECTED]



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to