Jump to content

php new line from the enter button pressed


MidOhioIT

Recommended Posts

I have a form that is being used for the start of a newsletter for my client to fill in.  The form has a textbox that is being used for the subject and a textarea that I am using for the body of the email.  The problem that I am having is when you type in the textarea and you hit enter to start a new paragraph, the code just reads everything in the textarea and does not start the new line like it appears it does in the textarea.  Is there an easy way to read the variable and capture the fact that the enter button was hit to do a "<br>" for a new line?

Thanks, but not exactly what I was saying.  Let me try to explain differently.  On the text area when I type the following:

 

this is my first paragraph...

 

This is my second paragraph...

 

This is my thrid paragraph...

 

 

I get this result in my email:

 

this is my first paragraph... This is my second paragraph... This is my thrid paragraph...

 

When I expect line breaks..

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.