Posté : 29 juin 2005, 09:30
Bonjour voici mon formulaire en HTML
la seule chose qui ne fonctionne pas dans celui-ci c'est les checkbox
tu m'avais montré comment les utilisés mais j'aurais voulu un exemple
plus détaillé.
dois je le laisser en html ou le passer en php dont je connais pas encore bien.
la seule chose qui ne fonctionne pas dans celui-ci c'est les checkbox
tu m'avais montré comment les utilisés mais j'aurais voulu un exemple
plus détaillé.
Code : Tout sélectionner
<form name="form1" id="form1" method="post" action="stock.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="10%" scope="col"> </th>
<th width="345" height="50" colspan="2" scope="col"><span class="Style4">ENTREE UN CONCOURS </span></th>
<th width="50%" height="50" scope="col"> </th>
</tr>
<tr>
<td width="10%"> </td>
<td width="345" height="50" colspan="2"> </td>
<td width="50%" height="50"> </td>
</tr>
<tr>
<td width="10%"><span class="Style3">Nom</span></td>
<td width="345" height="50" colspan="2">
<input name="nom" type="text" size="66" />
</td>
<td width="50%" height="50"><p class="Style4"><strong> IARU HF World Championship </strong></p></td>
</tr>
<tr>
<td width="10%"><span class="Style3">Date</span></td>
<td width="345" height="50" colspan="2">
<textarea name="date" cols="50" rows="2"></textarea>
</td>
<td width="50%" height="50"><div align="justify"><span class="Style6"> 2 nd week-end entier de juillet, du samedi à 12:00 UTC au dimanche à 12:00 UTC. </span></div></td>
</tr>
<tr>
<td width="10%"><span class="Style3">Bande</span></td>
<td width="10%">
<p class="Style6">
<input type="checkbox" name="bande[]" id="160m" value="1" />
160 m
</p>
<p class="Style6">
<input type="checkbox" name="bande[]" id="80m" value="2" />
80 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="40m" />
40 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="30m" />
30 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="20m" />
20 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="17m" />
17 m </p></td>
<td width="10%"><p class="Style6">
<input type="checkbox" name="bande[]" value="15m" />
15 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="12m" />
12 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="10m" />
10 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="6m" />
6 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="2m" />
2 m </p>
<p class="Style6">
<input type="checkbox" name="bande[]" value="70cm" />
70 cm </p></td>
<td width="50%">
<p class="Style6"> 160, 80, 40, 20, 15, 10 mètres
</p>
</td>
</tr>
<tr>
<td width="10%"><span class="Style3">Mode</span></td>
<td width="345" height="50" colspan="2">
<p class="Style6">
<input type="checkbox" name="mode[]" value="phonie" />
Phonie</p>
<p class="Style6">
<input type="checkbox" name="mode[]" value="telegraphie" />
Télégraphie
</p>
<p class="Style6">
<input type="checkbox" name="mode[]" value="mode digitaux" />
Mode digitaux </p></td>
<td width="50%" height="50"><span class="Style6"> Phonie et Télégraphie </span></td>
</tr>
<tr>
<td width="10%"><span class="Style3">Report</span></td>
<td height="50" colspan="2">
<textarea name="report" cols="50" rows="6"></textarea>
</td>
<td width="50%" height="50" class="Style6"><p><strong><em> Société membre IARU </em></strong></p>
<p> RST + abréviation de la société (ex : 599REF) </p>
<p><strong><em>Radio Amateur </em></strong></p>
RST + Zone ITU (ex : 59927) </td>
</tr>
<tr>
<td width="10%"><span class="Style3">Infos</span></td>
<td height="50" colspan="2">
<input type="text" name="info" size="66" />
</td>
<td width="50%" height="50"><p><a href="http://www.arrl.org/contests/rules/2005/iaru.html" class="Style6">http://www.arrl.org/contests/rules/2005/iaru.html</a></p></td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<tr>
<td colspan="4"><div align="center">
<input type="reset" name="effacer" value="Effacer"
>
</div></td>
</tr>
<tr>
<td colspan="4"><div align="center">
<input type="submit" name="envoyer"
value="Envoyer">
</div></td>
</tr>
</table>
</form>