ice78991
Programmer
- Nov 20, 2006
- 216
Should checkbox groups always have the same name ( ie vehicle in the example below)
When submitted, form.vehicle will contain a comma seperated list of values generated by the browser. Can this list generating behaviour be relied upon in all browsers (including for mobile devices )
<form>
I have a bike:
<input type="checkbox" name="vehicle" value="Bike" />
<br />
I have a car:
<input type="checkbox" name="vehicle" value="Car" />
<br />
I have an airplane:
<input type="checkbox" name="vehicle" value="Airplane" />
</form>
When submitted, form.vehicle will contain a comma seperated list of values generated by the browser. Can this list generating behaviour be relied upon in all browsers (including for mobile devices )
<form>
I have a bike:
<input type="checkbox" name="vehicle" value="Bike" />
<br />
I have a car:
<input type="checkbox" name="vehicle" value="Car" />
<br />
I have an airplane:
<input type="checkbox" name="vehicle" value="Airplane" />
</form>