Voici une partie de mon code de mon calendrier, ce que je voudrais c que la personne puisse cliqué sur le date lorsque celle ci est LIBRE et que la date choisi apparaise dans la zone de texte de mon formulaire ( formulaire.html )
tr>
<td align="center"><font color='#006699' size='4' face='Arial, Helvetica, sans-serif'><strong><u><? printf($jEnLettres." ".$j." ".$m." ".$a);?></u></strong></font></td>
</tr>
<tr>
<td height="35"><table width="260" border="0">
<tr>
<td height="31" colspan="4"><strong><font size="2" face="Arial, Helvetica, sans-serif">Horaires
:</font></strong></td>
</tr>
<tr>
<td width="24%"> </td>
<td width="29%"><font size="1" face="Arial, Helvetica, sans-serif"><strong></a>9h00 - 9h20</a></a></strong></font></td>
<td width="4%"><strong><font size="1">:</font></strong></td>
<td width="43%">
<?
$result=mysql_query("SELECT COUNT(*) as nbRDV FROM formulaire where jour = '$j' and mois = '$m' and annee = '$a' and heure = '9h00 - 9h20'" );
$nbRDVHeure=mysql_result($result,0,"nbRDV" );
if($nbRDVHeure >= $maxRDV)
printf("<font color='#FF0000' size='1' face='Arial, Helvetica, sans-serif'><strong><em>COMPLET</em></strong></font>" );
else
printf("<font color='#00CC00' size='1' face='Arial, Helvetica, sans-serif'><strong><em>LIBRE</em></strong></font>" );
?></td>