Variable Undefined using MS Access

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

  1. #1

    Default Variable Undefined using MS Access

    I'm getting this error (below). I've created a form where once the user clicks
    ths submit button they are taken to a page that says "thanks for filling in
    this form." The usrs information is sent to an Access databse table. ALSO, on
    this page is cold fusion code that emails the users information to me. The
    information is being sent to the Access db. However, on this "thanks page" I'm
    receiving this error below telling me that a variable is undefined.

    I figure Access is being finicky again. I just found out yesterday that when
    using Access and sorting page data by #URL.EID# that I don't need the single
    quotes. Damn that was frustrating. I'm hoping this solution is just as easy.

    Here's my code (I've eliminated my password information but know that it is at
    the top of this code below)

    #Fname# #Lname# Date of Birth: #dob#

    Parents'/Caregivers' Names:
    #P1Fname# #P1Lname#
    #Address1#
    #City1#, #State1# #Zip1#
    Home Phone: #Hphone1#
    Cell Phone: #Cphone1#
    Email: #Email1#

    #P2Fname# #P2Lname#
    #Address2#
    #City2#, #State2# #Zip2#
    Home Phone: #Hphone2#
    Cell Phone: #Cphone2#
    Email: #Email2#

    Thank you!

    </cfmail>
    <cfquery>
    INSERT INTO SSG (Fname, Lname, dob, P1Fname, P1Lname, P2Fname, P2Lname,
    Address1, City1, Hphone1, Cphone1, Email1, Address2, City2, Hphone2, Cphone2,
    Email2, HIprovider,"State1", Zip1, "State2", Zip2, A1, A2, A3, A4, A5, A6, A7,
    A8, A9)
    VALUES (#Fname#, #Lname#, #dob#, #P1Fname#, #P1Lname#, #P2Fname#, #P2Lname#,
    #Address1#, #City1#, #Hphone1#, #Cphone1#, #Email1#, #Address2#, #City2#,
    #Hphone2#, #Cphone2#, #Email2#, #HIprovider#,#State1#, #Zip1#, #State2#,
    #Zip2#, #A1#, #A2#, #A3#, #A4#, #A5#, #A6#, #A7#, #A8#, #A9#)
    </cfquery>



    ERROR
    -----------------------------------------------------------------
    Variable FNAME is undefined.
    The error occurred in D:\INETPUB\peer-projects\surveys\thanks.cfm: line 30
    28 :
    29 : Child's Name:
    30 : #Fname# #Lname# Date of Birth: #dob#
    31 :
    32 : Parents'/Caregivers' Names:


    Thanks in advance!


    trs.net Guest

  2. Similar Questions and Discussions

    1. Undefined Variable
      Can anyone tell me what's wrong with my code? I tried to create a form in html and redirect it to php. but result said: Notice: Undefined...
    2. variable undefined
      we have this variable from the internet, val(0), in a dynamic text field we can see a digit from this variable. but when we use this variable in...
    3. Notice: Undefined variable
      Hello, I've just installed EasyPHP 1.7, ( before i was in 1.6 release ), and my application does not run anymore !!! ... I've 2 problems :...
    4. [PHP] undefined variable
      did you solve this problem? i checked the coding in my linux box, it's working fine. Viraj Chris Kay wrote:
    5. #22367 [Csd]: undefined variable has a value
      ID: 22367 User updated by: stanislav dot chachkov at epfl dot ch Reported By: stanislav dot chachkov at epfl dot ch Status: ...
  3. #2

    Default Re: Variable Undefined using MS Access

    Wouldn't you want to scope your variables on your action page, such as #form.Fname# or #url.Fname# etc.?


    Phil
    paross1 Guest

  4. #3

    Default Re: Variable Undefined using MS Access

    Phil, I'm not sure what you mean. The only part that isn'tworking is the automated email part.
    trs.net 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