Ask a Question related to Coldfusion Database Access, Design and Development.
-
trs.net #1
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
-
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... -
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... -
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 :... -
[PHP] undefined variable
did you solve this problem? i checked the coding in my linux box, it's working fine. Viraj Chris Kay wrote: -
#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: ... -
paross1 #2
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
-
trs.net #3
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



Reply With Quote

