HTML form fields and special characters

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default HTML form fields and special characters

    How can I read the value of form fields with special characters such az comma,
    space, doller sign, star, slash,... in their name?

    When I dump the form <cfdump var="#form#"/> posted from a PDF form which has
    fields like "16. employee/name" I can see the value. but when I try to access
    the field even when I use evaluate function I get and error message that
    special characters are not allowed in coldfusion variable names.

    If cfdump can read the form fields value I should be able to it as well, the
    question is HOW?
    Amir

    Alen Guest

  2. Similar Questions and Discussions

    1. export Special characters from .swf to Lotus Notes Form
      In a Lotus Notes form, i have embedded a flash swf. Through this, users can submit applications, and I send the data to the Notes form with loadvar...
    2. Special Characters from Word Mail Merge saved as HTML
      Hello... I'm saving a Word MailMerge template as an HTML File to upload to create an "on-the-fly" mail merge. what I need to do is find the <<...
    3. Special Characters in a text box for a form
      I am creating a page the deals with users entering information into a form which is then loaded to a database. no big deal. however, this often...
    4. Special Characters - Mac vs. PC - Help
      Hi, im developing an hybrid application in director. The application is running very well in PC and MAC, but there is a problem annoying me. I...
    5. Numeric characters after alphabetic characters sorting varchar2 fields
      Hi! Why numeric characters are placed after alphabetic characters sorting varchar2 fields? Example: AAA BBB 111 FFF XXX
  3. #2

    Default Re: HTML form fields and special characters

    There might be a better way, but did you try accessing the value like this:

    <cfoutput>#form["16. employee/name"]#</cfoutput>
    mxstu Guest

  4. #3

    Default Re: HTML form fields and special characters

    Thank you mxstu , it worked.

    Someone else also give me a solution using structFind.

    <cfloop collection="#form#" item="this_field">
    <cfoutput>#this_field# = #StructFind(form, this_field)#<br></cfoutput>
    </cfloop>

    Alen Guest

  5. #4

    Default Re: HTML form fields and special characters

    Glad you solved it.

    Yes, the syntax: form["16. employee/name"] is basically a shortcut for StructFind(). I'm not sure which syntax is preferred .. as of MX 7.
    mxstu 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