Php – Multiple with the same name,how to know which is checked from PHP

PHPradio-button

...
<input type="radio" name="radio" id="radio1" />
<input type="radio" name="radio" id="radio2" />
..

Supposed it's submited with method="POST".

Best Answer

You should add a value to your input radio.

<input type="radio" value="somevalue" name="something">