17
So I’m working on updating a page (something I thought I had already completed) to a more “traditional” html style. By “traditional” I mean a simple form with an insert that fired a form method of POST.
The problems I’m having involve the form submission. Here’s a rundown:
When submitting the form, I need the variables to be added to a STRUCT type so the new STRUCT can be sent to a ColdFusion Component function (which then picks up the struct and submits the data to a stored procedure). Upon successful submission, the component will return a ’success’ message (containing the newly inserted rows ID), and on error will display the proper error message.
So here’s what’s up:
- I cannot populate the STRUCT correctly because some of the form field variables may be null (meaning no entry was selected). Checkboxes, selects, multiselects, and text fields.
- With the checkboxes, I need to create an array of anything that’s been selected. Here’s the variable names for the checkboxes:
- heat1
- heat2
- heat3
- tied
- notcontested
- handtimed
- preliminaries
- meetrecord
- schoolrecord
- staterecord
I’ve been told to look into using ISDEFINED and STRUCTKEYEXISTS.
Any thoughts, insight?






Categories