I have a form in which everything works as it should except I do not know how to have PHP find where in the textarea I have started a new paragraph and to then insert into the data in those spots a <p> tag. In other words I want to add a story to mySql bypasting text into a textarea. I then want to be able to view that story through a page that places the data from mySql on the page, but remembers where to put the <p> tags. Any help would be great.
Have you tried using nl2br()?
Basically, if you pull the info from the database, you can do this to the resulting row:
$story = nl2br($row[0]);
That adds a < br > tag to each line return.
This should accomplish what you are looking for.
-- Jason
If they are Ascii "new line" characters, this construct would work:
nl2br($mysql_data);
http://www.php.net/manual/en/function.nl2br.php
There are some good notes on this page also. Hope this helps, Josh