codice:
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Documento HTML</title>
<script type="text/javascript">
function radioChecked() {
for (var aPayments = document.pagamento.accredito, nLen = aPayments.length, nIdx = 0; nIdx < nLen; nIdx++) {
if (aPayments[nIdx].checked) {
document.pagamento.action = aPayments[nIdx].value === "bonifico" ? "checkout.asp" : "paypal.asp";
document.pagamento.submit();
return;
}
}
}
</script>
</head>
<body>
<form method="post" name="pagamento">
<input name="accredito" type="radio" value="bonifico" id="bonifico-rd" />
<label for="bonifico-rd">Bonifico</label>
<input name="accredito" type="radio" value="carta" id="carta-rd" />
<label for="carta-rd">Carta di credito</label>
</p>
[img]PAGAMENTO_files/pecRenewProsegui.png[/img]</p>
</form>
</body>
</html>