Weird "undefined in form" error message: but is defined--can anyone help?
Here is the <form> code:
<!---Dynamically generated list of bowling center names--->
<cfselect class="selectBox" name="regHomeCntr">
<option selected="selected">Where is your home bowling center?</option>
<cfloop query="getBowlCenters">
<option value="#getBowlCenters.ctrName#">#getBowlCenters.ctrName#</option>
</cfloop>
the <cfform> passes the above info to template (below) for insertion into DB. Everything processes successfully (as can be seen by the variable table at the top of the web page). Even the name of the bowling center is passed as a variable to the processing page, but CF keeps telling me the variable is undefined although I can see that it has passed the variable to the next page. I thought it was because I had the <CFSELECT> wrong, but the variable is being passed no matter what is selected. I am stumped.
Here is the code that is crashing:
<cfquery name="getTournaments" datasource="#dbs#">
SELECT *
FROM tournamentFeatures
WHERE tName = '#URL.tName#'
</cfquery>
<table>
<tr>
<td><strong>Variable Name</strong></td>
<td><strong>Value</strong></td>
</tr>
<!--- Loops over the URL structure and outputs variable names and associated values --->
<cfloop collection="#URL#" item="VarName">
<cfoutput>
<tr>
<td>
#VarName#</td>
<td> #URL[VarName]#</td>
</tr>
</cfoutput>
</cfloop>
</table>
<p></p>
<table>
<tr>
<td><strong>Variable Name</strong></td>
<td><strong>Value</strong></td>
</tr>
<!--- Loops over the FORM structure and outputs variable names and associated values --->
<cfloop collection="#form#" item="VarName">
<cfoutput>
<tr>
<td>
#VarName#</td>
<td> #form[VarName]#</td>
</tr>
</cfoutput>
</cfloop>
</table>
<!---Inserts new tournament registration into the registration table--->
<cflock name="addRegistrationRecord" type="exclusive" timeout="20">
<cftransaction>
<cfquery name="insertRegistration" datasource="RBDS">
INSERT INTO
tournamentReg
SET
tName = #URL.tName#,
tDate = '#URL.tDate#'
regDateTime = '#URL.regDateTime#',
regNumber = '#URL.regNumber#'
regFName = '#form.regFName#',
regLName = '#form.regLName#',
streetAddr = '#form.streetAddr#',
cityStateZip = '#form.CityStateZip#',
regPhone = '#form.regPhone#',
regEmail = '#form.regEmail#',
lastBook = '#form.lastBook#',
usbcCard = '#form.usbcCard#',
<cfif tName EQ #URL.tname# AND 'doubles' IS 'yes'>
bowlWith2 = '#form.bowlWith2#',
<cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
bowlWith3 = '#form.bowlWith3#',
<cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
bowlWith4 = '#form.bowlWith4#',
<cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
bowlWith5 = '#form.bowlWith5#',
<cfelse>
singlesTournament = '#form.singlesTournament#'
</cfif>
regHomeCntr = '#form.ctrName#' (CRASHES HERE)
WHERE
tName = '#URL.tName#' AND tDate = '#URL.tDate#'
</cfquery>
Try the code for yourself on a live site to see what I mean.
Go here first: http://www.renobowls.com/tournaments.cfm, then click on the button to the right of Test 2. You don't have to fill in any of the text areas but select one of the Bowling Centers from the drop down box. Then click "Register Me." You will see all the variables passed by the form at the top of the page...INCLUDING the Bowling Center you just selected from the drop down box on the previous page. How can it be passing the variable yet the query (insertRegistration) states it is not defined!!! UHGRRRR...
Well...hmmm. This is a new one on me. Used to be so easy. What happened? I made the necessary changes but I am getting a totally new error message. I have checked the number of query fields against DB...all checks. Did the same in my queries (unless I am missing something). It states that I have a syntax error. Where? What? I cannot for the life of me see it. But then again we know how that works...looking at the same code all day. Here is what I start with:
<cfquery name="addRegistration" datasource="RBDS">
INSERT INTO
tournamentReg
(tDate, tName, regDateTime, regNumber, regFName, regLName, streetAddr, cityStateZip,
regPhone, regEmail, lastBook, usbcCard, regNotify, regReturn, regMembership,
regLeague, ctrName,
<cfif tName EQ #URL.tName# AND 'doubles' IS 'yes'>
BowlerTwoName, BowlerTwoBook,
<cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
BowlerTwoName, BowlerTwoBook,
BowlerThreeName, BowlerThreeBook,
<cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
BowlerTwoName, BowlerTwoBook,
BowlerThreeName, BowlerThreeBook,
BowlerFourName, BowlerFourBook,
<cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
BowlerTwoName, BowlerTwoBook,
BowlerThreeName, BowlerThreeBook,
BowlerFourName, BowlerFourBook,
BowlerFiveName, BowlerFiveBook)
<cfelse>
singles, )
</cfif>
VALUES
<cfif tName EQ #URL.tname# AND 'doubles' IS 'yes'>
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
<cfelseif tName EQ #URL.tname# AND 'threePerTeam' is 'yes'>
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
<cfelseif tName EQ #URL.tname# AND 'fourPerTeam' IS 'yes'>
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourBook#">,
<cfelseif tName EQ #URL.tname# AND 'fivePerTeam' IS 'yes'>
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerTwoBook#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerThreeBook#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFourBook#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFiveName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.BowlerFiveBook#">,
<cfelse>
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.singles#">,
</cfif>
<cfqueryparam cfsqltype="CF_SQL_DATE" value="#URL.tdate#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.tname#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.regDateTime#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#URL.regNumber#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regFName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLName#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.streetAddr#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.cityStateZip#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regPhone#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regEmail#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.lastBook#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.usbcCard#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regNotify#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regReturn#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regMembership#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLeague#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.ctrName#">
</cfquery>
Here is what I get:
Variable Name
Value
TNAME
Teusday
REGNUMBER
5219531
TDATE
3/13/10
REGDATETIME
02/16/10 - 7:58:00 PM
Variable Name
Value
CTRNAME
Gold Dust West Bowling Center
REGPHONE
813-0850
REGNOTIFY
Yes
REGEMAIL
[email protected]
REGRETURN
Yes
USBCCARD
8130-5042
REGLEAGUE
No
LASTBOOK
191
REGFNAME
Rick
CITYSTATEZIP
Reno, NV 89523
REGISTER
Register Me
SINGLES
yes
REGNUMBER
9503574
REGMESSAGE
test 7:45PM
FIELDNAMES
REGNUMBER,REGDATETIME,REGFNAME,REGLNAME,REGPHONE,REGEMAIL,CTRNAME,USBCCARD,LASTBOOK,STREET ADDR,CITYSTATEZIP,SINGLES,REGNOTIFY,REGRETURN,REGMEMBERSHIP,REGLEAGUE,REGMESSAGE,REGISTER
STREETADDR
105 N. McCarran Blvd.
REGLNAME
Rossiter
REGMEMBERSHIP
No
REGDATETIME
02/16/10 - 7:44:48 PM
Error Occurred While Processing Request
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
The error occurred in C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 323
Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 218
Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 217
Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 1
Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 323
Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 218
Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 217
Called from C:\Inetpub\wwwroot\renobowls\forms\ProcessRegistration.cfm: line 1
321 : <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regMembership#">,
322 : <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.regLeague#">,
323 : <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#form.ctrName#">
324 : )
325 :
SQL
INSERT INTO tournamentReg (tDate, tName, regDateTime, regNumber, regFName, regLName, streetAddr, cityStateZip, regPhone, regEmail, lastBook, usbcCard, regNotify, regReturn, regMembership, regLeague, ctrName, singles, ) VALUES ( (param 1) , (param 2) , (param 3) , (param 4) , (param 5) , (param 6) , (param 7) , (param 8) , (param 9) , (param 10) , (param 11) , (param 12) , (param 13) , (param 14) , (param 15) , (param 16) , (param 17) , (param 18) )
DATASOURCE
RBDS
VENDORERRORCODE
-3502
SQLSTATE
42000
Similar Messages
-
When linking the icloud 3.0 software to my 2010 outlook an unepexted error message pops up. Can anyone help?
Not sure if you are trying to upgrade iCloud storage to make more room for the upgrade, but that won't help you. If you do not have enough room on your device for the upgrade, then you have to delete some things off of your device. You can also try to do the upgrade via iTunes on the computer you sync with. A direct upgrade does not require as much memory as a Wifi upgrade.
Upgrading iCloud storage only provides more storage for your backups and for your iCloud sync'd items like messages, contacts, etc.
Until the iCloud Drive is fully functional, iCloud will not help you to increase the memory capacity of your device.
And, right now, the iCloud servers may just be overloaded with activity.
Cheers,
GB -
I have recently upgraded to Yosemite and when trying to launch PS I get an error message 150:30. Can anyone help me out with this please?
Yes. The upgrade broke your CS4 install. You have to reinstall.
Easiest way to fix this is to download the installer Download CS4 products and have your serial number at the ready.
Then you will need to download and install the updates for Photoshop, Camera Raw, and Bridge here: Product updates
There is a Terminal fix, but you have to be familiar with Terminal and running the python license Repair script. You will need the bash shell on your user account. If that makes sense to you, we can try that.
Gene -
I am trying to update to ios6, on my iPad 2 . I get a message saying "error occurred while downloading ios6" can anyone help.?
Sorry to hear your Adobe experience has been less than stellar. I'll try to help...
1. Photoshop 14.2.1 is now two releases out of date. You might want to go to your Creative Cloud application and ask it to install Photoshop CC (2014). Earlier this year Adobe released 2014.0 as a separate install that can live side by side with 14.2.1. Then just a few days ago they released 2014.1 as an in-place upgrade to 2014.0.
2. You may be able to update Camera Raw directly to version 8.6 by a link from this page:
Keeping Photoshop Up-To-Date
Best of luck to you. Please let us know here if these things help.
-Noel -
I have purchased a new Mac power book 10.9.2. I cannot open adobe illustrator CS4 and get the error message 150:30. Can you help?
You are welcome, Sharon.
You should be aware that the newest version, CC, is only available as a subscription.
CS6 can be purchased at Adobe, or second hand, see below.
Older versions such as CS5 can only be bought second hand, with a licence transfer through Adobe, requiring that the licence has not been used as a basis for an upgrade. -
I cannot download the latest Itunes software, and I am being given the following message. 'The error code is 2324'. Can anyone help???
(Apologies for barging in, Steve.)
I'd also try the fixit from the following Microsoft document:
Let's try the fixit from the following Microsoft document with that one:
Fix problems with programs that can't be installed or uninstalled -
"disc error or software not found". can anyone help me resolve this please??
Im trying to burn music to my CD but i have a message appearing saying "disc error or softrware not found" can anyone help me?. Ive had a look at the computer settings about the disc drive but everything seems to be up todate with all the latest softwares.
Hello TinTin1989
Continue your troubleshooting with the article below to resolve issues with burning a disk within iTunes.
iTunes for Windows: Optical drive is no longer recognized, or "Disc burner or software not found" alert after install
http://support.apple.com/kb/ts2308
Regards,
-Norm G. -
My iphone 4s wont turn on,it wont even charge,when it does eventually start to charge the apple icon on the screen will appear for a few seconds then itll disappear, i have tried to do the soft/hard reset but nothing happens, can anyone help me please? do i have a dead iphone on my hands? isit worth me going into the apple store and seeing what they can do or isit pointless? please help!!!
Try to backup and restore you device in itunes...restoring the device is like removing the iOS software off the device and re-add in a newer software, after you have restore you device, MAKE SURE YOU SET UP YOUR DEVICE LIKE A NEW DEVICE, DONT NOT RESTORE FROM BACKUP!!... give the device a chance to use the newer software and see if the issue still persisting, if the issue still on going then its would be a hardware issue.
Call Apple Care and see if your device is still under warranty to get it replace -
Need Help, i have an Ipad2 after 6.3.1 update, i have no cameras, or e-mail, I already reset, multiple times, but no improvment, can anyone help?
When you say reset, do you mean a reboot by holding both the power and home buttons until the apple logo appears, ignoring the red slider if it appears?
-
Just bought a new Macbook Air (and a new to Mac) and having trouble connecting to home hub. Hub can be found yet when I enter my password, I receive the message "timed out". Can anyone help me?
GGo into your router's page and disable password protection and try connecting again.
-
In iWeb I created a hyperlink to a file on my computer. When I publish I get a 404 error for the link. Can anyone help?
How would I check to see if the like works when I enable via the inspector pane
If you enable hyperlinks when you click on the link link to the pdf file it will open a browser window and display the pdf file.
I upload the pdf files to the server and link to them as if they were an external web page:
That's been more reliable for me than linking to the file as Link To: A file and have iWeb upload the pdf file to the serve. -
Error occur right after sync. can anyone help me??
i used to sync. songs and movies in my way ,
but, when i added 3 new movies this morning,
error occurred. it shows /iPod cant be sync. unknown error occurred (13019)
what happened?? can anyone help?Hello ryanktc,
And welcome to Apple Discussions!
Have you had a look at this Apple support document yet? If not, it would be a good place to start.
http://support.apple.com/kb/TS2830
Otherwise, I would recommend just doing a search for this error message in this forum. You will receive a plethora of results with endless potential solutions to this error.
B-rock -
I am not able to transfer songs/ purchases from my playlist to my ipod...it is saying an unknown error occured (-50)? Can anyone help??
Given that you're on XP, we'd better try the following document:
iTunes displays -50 error message when syncing iPod on Windows XP -
Itunes is not up to date with these series, Revenge series 3 and The Americans 2 & 3, can anyone help were I can stream this to my Mac or ITV please
It is up to the content owner as to when, and if, specific content is available on itunes (or any outlet for that matter). Very often a network or production compnat willhave exclusive deals with streaming outlets for a period of time before a seaon of a series is available elsewhere.
I can't speak to most of the shows you reference, but in the case of The Americans, there has only been one season so far. Season two isn't schedule for broadcast until February of next year. -
My MacBook Air is stuck in iPhoto and won't let me log out it says it is downloading pics into the library but it is not - can anyone help me escape out of iPhoto?
Apple menu ==> force quit
Post back if you have trouble after quitting and rebooting your MBA
LN
Maybe you are looking for
-
Purchasing: Restriction of creation of PO's on the basis of buyer / user
Hi, We are currently working on a requirement in which the business is expecting to restrict the buyers / users from creating Purchase Orders of some specific GL natural accounts. Is there any functionality using which we can provide lock / check on
-
Hi, I just opened up my brand new 30" ACD. I noticed that the foam packing was broken on one side, indicating that it had been handled a bit roughly in shipping. However, the display seems to be OK. The only problem is the hinge on the stand. My olde
-
SQL Developer 3.1 out of memory
I new to SQL developer and I been trying to copy data between servers and i run out of memory a lot of times. And i see that it happens with tables with more than 1 mill rec and got clob etc in it. I had to write my own program to handle it and i fou
-
J2sdk and j2re in Mac OS X 10.3
Dear Developers, I'm quite new to java and need some help. I am a development support staff, and currently doing software adapation to Mac OS X 10.3. The software runs on j2sdk and j2re which are already available in OS X. I need to copy some files t
-
Hi All, I am using apache xerces SAX driver in my java application. However, when I start the program I am having to specify the driver property like below java -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser MySAXAppI believe that it is pos