Hi All,
This is going to seem like a silly question as I have been working with HTML/ASP etc and other web programming languages for years now but I'm finding a rather stupid problem with forms.
I have a form which has various fields etc as well as a number of checkboxes. What I am lost on is how to receive at the other end multiple selected checkboxes.
I have always thought that if you select multiple checkboxes when the form is processed it should come through as "1,2,3" or "Cricket, Tennis, Football" depending on the values. Therefore if I do the following:
<input type="checkbox" name="sport" value="1">
<input type="checkbox" name="sport" value="2">
<input type="checkbox" name="sport" value="3">
Then in PHP when looking at $sport I should see 1,2,3 but this doesn't seem to be the case. When I look at it all I see is the last selected one, eg. 3.
Can someone help. I know this is a ridiculously simply problem but I just can't figure it out. And using implode or explode doesn't seem to help either in case you're thinking that might solve it!!!
Anyway cheers to anyone that can assist.
Larry