okay on this ocean website (http://www.dusty.pwp.blueyonder.co.uk/ocean/index.html) users can submit their own stories. they do this by entering their story into a text area. once, submitted the data is written to a text file. later on this story will need to be called up when other people want to view it, and it will be displayed on a html page.
now. is it possible, using php, for when the story is submitted, php scans the data and replaces any line gaps (indicating paragraphs) with the <p> tag? if so how.

so for example. a user submits the following in the text area
"this is my story
this is the end of my story"
and then php needs to turn it into:
"this is my story<p>this is the end of my story"
after that it gets written to a text file, but thats one thing i do know how to do lol

thx