+ Reply to Thread
Results 1 to 4 of 4

Thread: BR tag appearing in TEXTAREA in HTML email

  1. #1
    Join Date
    Mar 2005
    Posts
    3

    Default BR tag appearing in TEXTAREA in HTML email

    I use a TEXTAREA field in my form. In the emailed html I have the following so that the emailed form looks just like the form on the site:

    Code:
    <textarea rows="10" cols="50">$instructions</textarea>
    The text that is returned contains the html break tag wherever the ENTER key was pressed.

    Code:
    asdf<br />
    asdf<br />
    etc...
    It looks correct if I simply use the $instructions field inside a P tag. How can I remove these tags so that the text looks like it did when it was entered originally - like this:
    Code:
    asdf
    asdf
    etc...

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: BR tag appearing in TEXTAREA in HTML email

    Hi,

    Use the P tag instead of a TEXTAREA.

    We'll improve this in a later version to recognize the TEXTAREA and then not replace the newlines with BR tags.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Mar 2005
    Posts
    3

    Default Re: BR tag appearing in TEXTAREA in HTML email

    OK. I'll just do that for now. Thanks... I hope this fix is on your list though. I knew the P tag would work, but I think it looks much cleaner, and takes up less page space if it is in the TEXTAREA. Thanks for the speedy response.

  4. #4
    Join Date
    Mar 2005
    Posts
    3

    Default Re: BR tag appearing in TEXTAREA in HTML email

    I decided to simply use CSS to put a border around my text instead of waiting on the TEXTAREA solution. The beauty of the TEXTAREA is that it is a fixed size and it has as scrollbar. But this will work for now.

    Code:
     border: 1px solid #0047a2;
     padding: 3px;

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 09:31 PM
  2. HTML Email not working
    By Rich in forum FormMail Subscription Support
    Replies: 9
    Last Post: 23-Jul-2004, 10:11 PM
  3. Can I Include an Image in an HTML Email??
    By minskin in forum FormMail Subscription Support
    Replies: 4
    Last Post: 19-Jun-2004, 03:43 PM
  4. HTML email reply
    By aussieincanada in forum FormMail Subscription Support
    Replies: 5
    Last Post: 04-Jun-2004, 07:07 AM
  5. send an email in HTML
    By michecosta in forum FormMail Subscription Support
    Replies: 3
    Last Post: 25-May-2004, 09:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts