1 2 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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script language="Javascript">
function activer()
{
document.pgenerate.autres.disabled=false;
document.pgenerate.autres.hidden=false;
document.pgenerate.autres2.visibility="hidden";
}
</script>
<script language="Javascript">
function desactiver()
{
document.pgenerate.autres.disabled=true;
document.pgenerate.autres.hidden=true;
document.pgenerate.autres.value="";
document.pgenerate.autres2.visibility="visible";
}
</script>
<script language="Javascript">
function activer2()
{
if (document.pgenerate.checkbox2.checked == "other" )
{
document.pgenerate.autres.disabled=false;
document.pgenerate.autres.hidden=false;
document.pgenerate.autres2.visibility="hidden";
}
else
{
document.pgenerate.autres.disabled=true;
document.pgenerate.autres.hidden=true;
document.pgenerate.autres.value="";
document.pgenerate.autres2.visibility="visible";
}}
</script>
</head>
<body>
<div id="contener">
<table width="480" height="200" border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#0000CC" bgcolor="#eaeff5">
<tr>
<td width="480" height="200" align="left" valign="top">
<form action="php/fichier.php" method="post" name="pgenerate">
<div align="left"><a name="debutformulaire" id="debutformulaire"></a></div>
<table width="563" height="105" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="48" height="30"> </td>
<td width="515" height="30"><p>
<input id="oui" type="radio" name="inscription" value="oui" onclick="activer()"/>
Oui<br>
<input name="inscription" type="radio" id ="non" onfocus="desactiver()" value="non" checked="checked" />
Non</p></td>
</tr>
<tr>
<td height="30"> </td>
<td height="30">
<select name="checkbox2" id="checkbox2" onclick="activer2()">
<option value="1">un</option>
<option value="2">deux</option>
<option value="other">autres</option>
</select></td>
</tr>
<tr>
<td height="30"> </td>
<td height="30"><p><span name="autres2" id="autres2" style="visibility: hidden">Si autres : </span>
<input name="autres" type="text" id="autres" size="40" disabled=true hidden=true/>
</p></td>
</tr>
<tr>
<td height="15" colspan="2"> </td>
</tr>
</table>
<p align="right">
<input type="button" value="Envoyer" onclick="verif(this.form);"/>
<input type="reset" value="Effacer" />
</p>
</form> </td>
</tr>
</table>
</body>
</html> |
Partager