How to convert character code in FORM MAIL Page?

Discussion in 'HTML & Website Design' started by MindReality, Jan 17, 2008.

  1. #1
    I use a web form to receive emails through this page:
    http://www.mindreality.com/contact.html

    The problem is that when users type in the quotation marks " or '

    It gets passed through as some funny format.

    How do I edit the code to make sure all special characters that converted properly and passed to my inbox?
     
    MindReality, Jan 17, 2008 IP
  2. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't know what script you are using for e-mails but when it's written in php... then \" this will show the quotation mark... And also \', \$ and many more...
     
    risoknop, Jan 17, 2008 IP
  3. MindReality

    MindReality Well-Known Member

    Messages:
    202
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    105
    #3
    I'm using the form mail clone script. The one that is provided by the cpanel.

    I have no idea how to get the quotation characters working properly.
     
    MindReality, Jan 18, 2008 IP
  4. TechnoGeek

    TechnoGeek Peon

    Messages:
    258
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello, MindReality.

    Double or single quotes are many times filtered or masked when input to CGI scripts due to security reasons. If you have access to the script code, that is you can modify it, then you may change this behaviour. Otherwise, I don't know what you can do, except writing some JavaScript that replace the quotes with something else. If this issue is very important to you, you should get another script or tell your visitors to not use quotes.
     
    TechnoGeek, Jan 18, 2008 IP
  5. MindReality

    MindReality Well-Known Member

    Messages:
    202
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Thanks for the information!
     
    MindReality, Jan 19, 2008 IP
  6. TechnoGeek

    TechnoGeek Peon

    Messages:
    258
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Glad to help. All the success for you.
     
    TechnoGeek, Jan 20, 2008 IP