woodknut
12-04-2003, 06:19 PM
I am gathering all user input from a form and then submitting the form data to a shopping cart. Due to the expectations of the shopping cart I am forced to use a variable with brackets as follows:
<INPUT type="HIDDEN" name="product1[]" value="newProduct">
Further, I have several INPUT statements like this to gather multiple "descriptions" for a single product item. In the shopping cart the submitted product appears with each "description" delimited by commas, with a single price, quantity, etc. Its works but...
Here's my problem:
Now, on submit I am validating some of the fields in an external *.js file and am having troubles checking the values in the product1[] item (not sure if its really an array). I am passing the document.myFormName and can access some of the other elements of the form by element name.
Looking forward to your help!
WoodK.
<INPUT type="HIDDEN" name="product1[]" value="newProduct">
Further, I have several INPUT statements like this to gather multiple "descriptions" for a single product item. In the shopping cart the submitted product appears with each "description" delimited by commas, with a single price, quantity, etc. Its works but...
Here's my problem:
Now, on submit I am validating some of the fields in an external *.js file and am having troubles checking the values in the product1[] item (not sure if its really an array). I am passing the document.myFormName and can access some of the other elements of the form by element name.
Looking forward to your help!
WoodK.