| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 
 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
<script type="text/javascript">  
function validpaiement()
{
if (document.getElementById("paiement").checked) {
  var mode = document.getElementsByName("mode");
  for (var i=0,imax=mode.length; i<imax; i++) {
    if (mode[i].checked) { return true; }
  }
}
alert("raté");
return false;
}
</script>
</head>
<body>
 
<form action="http://www.monsite.com/acces-paiement.html" method="post" enctype="application/x-www-form-urlencoded" name="forms" OnSubmit="return validpaiement()">
	<table>
		<tr>
			<td>
	<input type="checkbox" name="paiement" id="paiement" /></td><td> Je désire régler maintenant</td>
		</tr>
		<tr>
			<td><input type="radio" name="mode" id="cb" /> Carte bancaire</td>
		</tr>
		<tr>
			<td><input type="radio" name="mode" id="cheque" />Chèque</td>
		</tr>
		<tr>
			<td><input type="radio" name="mode" id="mandat" />Mandat</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align:center">
			<input type="submit" value="valider">
			</td>
		</tr>
	</table>
</form>
</body>
</html> | 
Partager