I have an HTML form with multiple checkboxes using the same name...DRIVER as follows
<input type="checkbox" name="DRIVER" value="4"></td>
<input type="checkbox" name="DRIVER" value="5"></td>
<input type="checkbox" name="DRIVER" value="6"></td>
If all of the boxes are checked I would like to get an array as follows
@drivers = "4, 5, 6"
I use ReadParse to process the form data and all of the checked items come in combined as one line in the variable
$in{'DRIVER'}
so if I say
@drivers = $in{'DRIVER'};
@drivers shows that it only has 1 element no matter how many items are selected on the HTML form and they are all compbined in that one item...for example if all of the items above were checked and then I hit SUBMIT, $in{'DRIVER'} would contain the following element:
456
all run together instead of three different elements 4, 5 & 6... can I get an actual array of different elements from multiple checkboxes of the same name by using ReadParse?
<input type="checkbox" name="DRIVER" value="4"></td>
<input type="checkbox" name="DRIVER" value="5"></td>
<input type="checkbox" name="DRIVER" value="6"></td>
If all of the boxes are checked I would like to get an array as follows
@drivers = "4, 5, 6"
I use ReadParse to process the form data and all of the checked items come in combined as one line in the variable
$in{'DRIVER'}
so if I say
@drivers = $in{'DRIVER'};
@drivers shows that it only has 1 element no matter how many items are selected on the HTML form and they are all compbined in that one item...for example if all of the items above were checked and then I hit SUBMIT, $in{'DRIVER'} would contain the following element:
456
all run together instead of three different elements 4, 5 & 6... can I get an actual array of different elements from multiple checkboxes of the same name by using ReadParse?