E-mail with apostrophe

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default E-mail with apostrophe

    I have this weird situation happening when someone's e-mail address is captured
    from a form; if the e-mail address contains an apostrophe (single quote like
    M.O'Brian@acme.com), the saved information will be M.O''Brian@acme.com.... and
    if you save it again it will become M.O'''Brian@acme.com Another quote is
    added everytime the data is saved again.

    Can anyone provide me with a clue or a lead as to what I should be looking for
    that could be causing this situation?

    The same thing happens in any text field (Name, Address, City, etc).

    Environment:

    CFMX7-Standard
    DB: Paradox 9
    Connection: ODBC Socket using Intersolv 3.11 ODBC DSN

    See below code for actual CFQuery. I also tried single quote to surroud text
    field in the Insert statement but no change.

    Thanks,
    Claude


    <CFQUERY DATASOURCE="#ds#" >
    INSERT INTO table VALUES( #max_key.new_key#,
    "#form.lname#",
    "#form.fname#",
    "#form.phone#",
    "#form.fax#",
    "#form.email#",
    "#form.address1#",
    "#form.address2#",
    "#form.address3#",
    "#form.city#",
    "#form.prov_code#",
    "#form.postal_code#"
    )
    </cfquery>

    cld007 Guest

  2. Similar Questions and Discussions

    1. PHP and the apostrophe (')
      Hello to all, I'm a beginner with PHP and MySQL. Aktually I have some forms to update MySQL tables. Every think work well, but I have a problem...
    2. apostrophe madness
      Hello everyone. I am TOTALLY baffled. PLEASE, I need some help here. In the event that one must deal with a name including an apostrophe...I...
    3. Apostrophe replaced by ? marks
      I ran into a similar problem recently and this was the solution suggested (which solved my problem): documents by some word processors. If you...
    4. Display Apostrophe problem ??
      Hi I am in need of the urgent solution from all the Flash Experts. I am passing the string in the Flash through C# using XML. In the Flash I...
    5. Apostrophe in a string
      I'm new to SQL Server programming (I've been using Access) and wanted to know: How do I put an apostrophe in a string, if the apostrophe is the...
  3. #2

    Default Re: E-mail with apostrophe (single quote)

    I have no experience with Paradox 9. However, it appears to be "escaping" the
    single-quote character automatically.

    A solution might be to return to single-quotes for text fields in the
    insert-statement, as that is standard, and to use the function
    preservesinglequotes, i.e.
    INSERT INTO table VALUES(#max_key.new_key#, '#form.lname#', '#form.fname#',
    '#form.phone#','#form.fax','#preservesinglequotes( form.email)#','#form.address1#
    ',... etc.)




    BKBK Guest

  4. #3

    Default Re: E-mail with apostrophe (single quote)

    This is great! I was not aware of this function. I just tried it out and it does exactly what its name implies!

    Thank you VERY MUCH!

    Claude
    cld007 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139