I'll try to simplify this as much as possible. I'm working on a multi-tabbed AJAX form. Each tab has it's own name to pass values (ie. FB[] ).
Once the form is submitted, the resulting $_GET is something like this:
array(7) {
["C"]=> array(1) {
[0]=> string(5) "22234"
}
["FB"]=> array(1) {
[0]=> string(6) "390862"
}
["SB"]=> array(1) {
[0]=> string(0) ""
}
["TB"]=> array(1) {
[0]=> string(0) ""
}
["SS"]=> array(1) {
[0]=> string(0) ""
}
["OF"]=> array(1) {
[0]=> string(0) ""
}
["DH"]=> array(1) {
[0]=> string(0) ""
}
}
Note: each can contain a single value or comma separated values (Form is being submitted using prototypes form.serialize function.
My goal is to be able to run a db query on each value and then compare the results of each.
My question are...
how can I grab the ID's from the GET and put them into an array so I can run a query on each and then compare the results of each?
Should I stick with my current method of sending form values? Is there a better way?