Hi everyone, I am new to the forum, and I'm not very knowledgable, so I'll probably do more asking than contributing, and I apologize in advance for that.
My question is about a guestbook I'm using. Most people know it, it's the one from Matt's Script archive. Only, I'm trying to use it as a way for my visitors to post stories to the web page. The only fields being posted really are their name, the name of the story, an intro to the story, the date, and the story itself.
My problem comes when you submit a large story, any longer than one paragraph. There is no paragraph filtering in the code, so if there is more than one paragraph in their story, the code sticks it all together, and it gets posted on the web page in one extremely large paragraph. Totally unreadable.
I figured that I had to put something in the code to find all the carraige returns, (which I guess are represented by "\n" in perl), and have the code replace all those with HTML-recognizable paragraph symbols like "<p>" or something like that. I understand the concept, but don't know how to do it.
This guestbook was my first introduction to the Perl language. I have a small understanding of it now, but need help figuring out how to implement this. Any ideas?
Thanks,
Nate
p.s. Sorry I'm a little long winded.