Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 dimensional arrays

Status
Not open for further replies.

iao

Programmer
Feb 23, 2001
111
US
I am trying to create a web form that has a column of Yes/No radio buttons. I would like to load the selection radio button information into a Javascript 2-dimensional array (the 2 dimensions are for the Yes/No answers). Then once the page is submitted, pull the information from this array and insert into my web page (which is running in Cold Fusion).

Any ideas on the best way to do this?
 
The query sent to your ColdFusion server corresponds to the values from the selected radio buttons anyway, it is done for you. Assuming each yes/no is a separate group. You will have radioName=value pairs to work with.

2D arrays are simple, but I am not sure what you mean? A 2D array is like a matrix, an array whos elements are also arrays, so I don't quite see what you mean?
b2 - benbiddington@surf4nix.com
 
I apologize for not being clear enough.

The problem is that I need to validate the form PRIOR to selecting the submit button (basically, each time a Yes/No radio button is selected). I can't do this using ColdFusion, I assumed I needed Javascript to do this. Since I don't want to submit the values until AFTER the submit button is used, that is why I wanted to insert these validated values into an Array (which has to be 2-D). Then, when the form is submitted, I would like to dump these values out of the Javascript array and into the ColdFusion form.

Does this makes sense? Can this be done?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top