There is no way, you have to give the same name to each, the name is the category of the item and not the value, the value is what PHP will receive, type, you what changes is the value
.
That is to say, name
is category "Land" (Country, origin, etc.)
And the value
is the selection that the user makes user/client.
Example:
<form onchange="alert('Seu país é '+this.pais.value+'\r\nForma de pagamento: '+this.pagamento.value)">
<p>Seu país atual:</p>
<input type="radio" name="pais" value="BRASIL" checked>Brasil<br>
<input type="radio" name="pais" value="URUGUAI">Uruguai<br>
<input type="radio" name="pais" value="E.U.A">Estados Unidos da América<br>
<!-- Forma de pagamento -->
<p>Escolha sua forma de pagamento:</p>
<input type="radio" name="pagamento" value="CREDCARD" checked>Cartão de Crédito<br>
<input type="radio" name="pagamento" value="CHEQUE">Cheque nominal<br>
<input type="radio" name="pagamento" value="BOLETO">Boleto<br>
</form>
Used Chebox
:
<form>
<input type="checkbox" name="pais1" value="Brasil">Brasil<br>
<input type="checkbox" name="pais2" value="EUA">Estados Unidos da América<br>
</form>
If they represent the same type of data and are mutually exclusive, then they should have the same name. To do otherwise will be gambiarra and will not be recommended.
– Woss