I have a form with only one element (a text area created in Dreamweaver.) I want a user to input text in the form in any way he wants(such as paragraphs) and have it output pretty much the same way it was entered except on a different web page. I read about the function nl2br() but I do not understand how it works. I don't need anything as sophisticated as this message window I used to type in the message, I just want my user to be able to type in a textarea and if he wants a new paragraph
then all he would have to do
is hit the enter button
and the text would be displayed like you are seeing it now. I want to be able to do something similiar.
Any suggestions?
then all he would have to do
is hit the enter button
and the text would be displayed like you are seeing it now. I want to be able to do something similiar.
Any suggestions?
Comment