Ok, I have a form that i let me executives fill in and the one field is like this: <textarea name="body" cols="50" rows="20" wrap="virtual"><?php echo $body?></textarea>.
Now I've set it up so that they can type as if they typing in a word processor. Every "Enter" stroke is equivalent to a <BR>. I've done this by entering the following into the process script.
$body = ereg_replace("(<br>)|(\n)", '<br>', $body);
Here's my problem. I want them to be able to go in and modify or completely change what they entered without have to worry about messing up the format. By this I mean, if they go into the form and want to add another paragraph they can.
Currently, if they edit it add's a double return when they submit the edit because the $body = ereg_replace("(<br>)|(\n)", '<br>', $body); line was left in.
If i take the line out then any typing they do just runs together in one big sentence.
Also just a side note, then the go into the edit or modify form, the <br> that were auto generated from the initial add are all visible.
I hope this we clear.
Thanks,
chad