Posts | Comments

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:

A view of my form

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:

  1. 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.
  2. With the checkboxes, I need to create an array of anything that’s been selected. Here’s the variable names for the checkboxes:
    1. heat1
    2. heat2
    3. heat3
    4. tied
    5. notcontested
    6. handtimed
    7. preliminaries
    8. meetrecord
    9. schoolrecord
    10. staterecord

I’ve been told to look into using ISDEFINED and STRUCTKEYEXISTS.

Any thoughts, insight?

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Technorati

Leave your comment

chadedge dot-com is powered by WordPress. Design by Nofie Iman.