return key should create a <br> in text area
Posted: Thu Nov 11, 2004 9:17 pm
Hi all
I made a simple php page with a form with a text area and a submit button. Clicking the submit button writes the content of the text area into an html page.
It is like a very very basic blog, and I'm glad I got so far.
The next thing I need to figure out is:
when I write in the text area, and press the return key to go to the next line, I want this to translate into a <br>, so that the line breaks will be reproduced when the content of the text area is written into the html page.
(oh, and I need something that will work in both Mac and PC).
How can I do that?
Thanks for your help
I made a simple php page with a form with a text area and a submit button. Clicking the submit button writes the content of the text area into an html page.
It is like a very very basic blog, and I'm glad I got so far.
The next thing I need to figure out is:
when I write in the text area, and press the return key to go to the next line, I want this to translate into a <br>, so that the line breaks will be reproduced when the content of the text area is written into the html page.
(oh, and I need something that will work in both Mac and PC).
How can I do that?
Thanks for your help