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?

Link to comment
Share on other sites

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..

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.