+ Reply to Thread
Results 1 to 5 of 5

Thread: Special Characters in Value String

  1. #1
    Join Date
    Mar 2005
    Posts
    14

    Default Special Characters in Value String

    Hello. A problem has appeared in a form that I do not know how to resolve.

    If I have a form field:

    <input name="nominee_category" type="radio" value="EXCELLENCE IN CASE/QUALITY MANAGEMENT; MANAGED CARE">

    The semicolan causes the email output of formmail to go crazy, wrapping all output onto one line; like this:

    nominee_category: EXCELLENCE IN CASE/QUALITY MANAGEMENT; MANAGED CARE nominee_name: nominee_job_title: nominee_org: nominee_credentials: nominee_work_address: nominee_mailing_address: nominee_day_phone: nominee_resident: Yes nominated_by: nominated_by_org: nominated_by_address: nominated_by_day_phone: nominated_by_fax: nominated_by_email: Submit: Send

    The same seems to happen if I use:

    <input name="nominee_category" type="radio" value="EXCELLENCE IN CASE/QUALITY MANAGEMENT OR MANAGED CARE">

    or...

    <input name="nominee_category" type="radio" value="EXCELLENCE IN CASE/QUALITY MANAGEMENT AND MANAGED CARE">

    This seems an escaping problem, but do not know how to resolve it. Any help would be appreciated.

    I should say that I am using formmail 5.03, php 5.0.3. Using HTML encoding on the semicolon does not seem to help either.
    Last edited by hpinson; 23-Mar-2005 at 01:15 AM.

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

    Default Re: Special Characters in Value String

    Hi,

    Your tests seem to indicate that the joining has nothing to do with the contents of the fields.

    I guess you're not using a template (HTML or Plain).

    So, I wonder what you have for BODY_LF?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Mar 2005
    Posts
    14

    Default Re: Special Characters in Value String

    Ah-- brilliant.

    BODY_LF is set to the default: define("BODY_LF","\r\n");

    I changed it to: define("BODY_LF","\r\n\n");

    Which both solved the problem, and made the output more readable as well, by placing a space between lines in the output mail.

    Thanks!

  4. #4
    Join Date
    Mar 2005
    Posts
    14

    Default Re: Special Characters in Value String

    Spoke to soon. The above modification fixes the problem with special characters, but breaks email attachments-- attachments are converted to text for some reason from binary.

  5. #5
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: Special Characters in Value String

    Hi,

    Put BODY_LF back the way it was.

    Now, use a different email client to view the emails you get.

    Use Microsoft Outlook or a web-based email client.

    I suspect you'll find that the lines don't run together.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ 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. verifytest.php no verification characters
    By WyleySam in forum Community Support
    Replies: 1
    Last Post: 18-May-2006, 03:07 PM
  2. Invalid "conditions" field "conditions" - not a string or array
    By markalexandrov in forum FormMail Subscription Support
    Replies: 40
    Last Post: 27-Feb-2006, 12:46 AM
  3. Problem with (the replacement of) special characters
    By asket in forum FormMail Subscription Support
    Replies: 14
    Last Post: 28-Nov-2005, 09:22 PM
  4. Validate number of characters in a TextArea field
    By matty in forum FormMail Subscription Support
    Replies: 3
    Last Post: 13-Oct-2005, 12:03 PM
  5. weird characters in mail
    By Jackal in forum FormMail Subscription Support
    Replies: 0
    Last Post: 29-Sep-2005, 06:41 AM

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