Jump to content

hues

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

hues's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have used a simple coment form for a website. Everything is working fine, except that if a field contains \ in the input, the mail I recieve shows up \\ instead of one backslash. this is the part of the code $from="$email_address"; $message="$title $name $last_name\n$organization\n$mailingaddress\n$mailingaddress2\n$city $state $zip\n$phone\n$email_address\n$email_address2\n\n$comments\n"; if(mail($to,"Comments From NIA MPU",$message,"From: $email_address\n")) { echo "Thanks for your comments."; } else { echo "There was a problem sending the mail. Please check that you filled in the form correctly."; Someone suggested adding $header .= "MIME-Version: 1.0rn"; $header .= "Content-Type: text/html; charset=iso-8859-1rn"; but still no help. The form is working fine except this small problem, which the client has pointed out.
×
×
  • 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.