Hello,
2 things, which are realy one.
Scenario:
- A HTML page with a form called myForm.
- A javascript which interacts with the form.
- A Php script which the form is submitted to.
1) If I give my form checkboxes a name such as "items[]" I CAN'T use the following javascript, "var items = document.myForm.items;" or "var items = document.myForm.items[];".
but if the checkboxes names are just "items", I can use the javascript "var items = document.myForm.items;".
2) So if I use "items" as my checkboxes names how can I get the values of the elements as Php thinks it is a string, yet it is an array in javascript?
I hope I have been clear enough. Please let me know if you need more information to help.
Thanks.