Hi guys,
Hope you can help (and hope I can explain my problem OK!)
I am designing a sports site which takes three values from a user to input match details: a date (text input), a versus (text input), and if the match is home or away (radio buttons). Several matches can be inputed in one page, so I am trying to pass my PHP script three arrays (date, versus, and home/away). For the text input I simply name the inputs "date[]" and "versus[]", however am struggling with the radio inputs.
Basically if I name all the radio buttons "homeaway[]", they are all part of the same set and so I can only select one option (when I want to be able to select one option per home/away pair), so I need a different name per pair, however then I cannot add it to a single array!
Does anyone have any suggestions? I would preferably avoid "homeaway1[]", "homeaway2[]", etc. as the number of match inputs per page is dynamic using JavaScript.
Hope I have made myself clear!
Thanks in advance.