Salut,
J n'arrive pas à obtenir le résultat de mes 2 listes déroulantes.Cad: quand je sélectionne une couleur dans le premier choix et le deuxième choix le résultat doit me dire si c'est vrai ou faux.
merci de bien m'aider Sand

-------------------------------------------------------------------
Code php
<html>
<form action=coul.html method=get>
//creation du tableaux couleur1
<SELECT name="couleur1">
<OPTION value=1>Black_velvet</OPTION>
<OPTION value=2>Harcoal</OPTION>
<OPTION value=3>Ebony</OPTION>
<OPTION value=4>Wilson</OPTION>
<OPTION value=5>Starlite</OPTION>
<OPTION value=6>Albinos</OPTION>
<OPTION value=7>Beige_tower</OPTION>
<OPTION value=8>Champagne</OPTION>
<OPTION value=9>Almond_blossoin</OPTION>
<OPTION value=10>Beige_velvet</OPTION>
<OPTION value=11>Afro_violet</OPTION>
<OPTION value=12>Pastel</OPTION>
<OPTION value=13>Saphir</OPTION>
<OPTION value=14>Saphir_velvet</OPTION>
</SELECT>;
//creation du tableaux couleur2
<SELECT name="couleur2">
<OPTION value=1>Black_velvet</OPTION>
<OPTION value=2>Harcoal</OPTION>
<OPTION value=3>Ebony</OPTION>
<OPTION value=4>Wilson</OPTION>
<OPTION value=5>Starlite</OPTION>
<OPTION value=6>Albinos</OPTION>
<OPTION value=7>Beige_tower</OPTION>
<OPTION value=8>Champagne</OPTION>
<OPTION value=9>Almond_blossoin</OPTION>
<OPTION value=10>Beige_velvet</OPTION>
<OPTION value=11>Afro_violet</OPTION>
<OPTION value=12>Pastel</OPTION>
<OPTION value=13>Saphir</OPTION>
<OPTION value=14>Saphir_velvet</OPTION>
</SELECT>;
</from>
</html>
<?php coul.php
$tab[1][1]= false ;
$tab[1][2]= true;
$tab[1][3]= true;
$tab[1][4]= true;
$tab[1][5]= true;
$tab[1][6]= true;
$tab[1][7]= true;
$tab[1][8]= true;
$tab[1][9]= true;
$tab[1][10]= true;
$tab[1][11]= true;
$tab[1][12]= true;
$tab[1][13]= true;
$tab[1][14]=false ;
$tab[2][1]= true;
$tab[2][2]= true;
$tab[2][3]= true;
$tab[2][4]= true;
$tab[2][5]= true;
$tab[2][6]= true;
$tab[2][7]= true;
$tab[2][8]= true;
$tab[2][9]= true;
$tab[2][10]= true;
$tab[2][11]= true;
$tab[2][12]= true;
$tab[2][13]= true;
$tab[2][14]= true;
$tab[3][1]= true;
$tab[3][2]= true;
$tab[3][3]= false;
$tab[3][4]= true;
$tab[3][5]= true;
$tab[3][6]= true;
$tab[3][7]= true;
$tab[3][8]= true;
$tab[3][9]= true;
$tab[3][10]= true;
$tab[3][11]= true;
$tab[3][12]= true;
$tab[3][13]= true;
$tab[3][14]= true;
$tab[4][1]= true;
$tab[4][2]= true;
$tab[4][3]= true;
$tab[4][4]= false;
$tab[4][5]= false;
$tab[4][6]= true;
$tab[4][7]= true;
$tab[4][8]= true;
$tab[4][9]= true;
$tab[4][10]= true;
$tab[4][11]= true;
$tab[4][12]= true;
$tab[4][13]= true;
$tab[4][14]= true;
$tab[5][1]= true;
$tab[5][2]= true;
$tab[5][3]= true;
$tab[5][4]= false;
$tab[5][5]= true;
$tab[5][6]= true;
$tab[5][7]= true;
$tab[5][8]= true;
$tab[5][9]= true;
$tab[5][10]= true;
$tab[5][11]= true;
$tab[5][12]= true;
$tab[5][13]= true;
$tab[5][14]= true;
$tab[6][1]= true;
$tab[6][2]= true;
$tab[6][3]= false;
$tab[6][4]= true;
$tab[6][5]= true;
$tab[6][6]= true;
$tab[6][7]= true;
$tab[6][8]= true;
$tab[6][9]= true;
$tab[6][10]= true;
$tab[6][11]= true;
$tab[6][12]= true;
$tab[6][13]= true;
$tab[6][14]= true;
$tab[7][1]= true;
$tab[7][2]= true;
$tab[7][3]= false;
$tab[7][4]= true;
$tab[7][5]= true;
$tab[7][6]= true;
$tab[7][7]= true;
$tab[7][8]= true;
$tab[7][9]= true;
$tab[7][10]= true;
$tab[7][11]= true;
$tab[7][12]= true;
$tab[7][13]= true;
$tab[7][14]= true;
$tab[8][1]= true;
$tab[8][2]= true;
$tab[8][3]= false;
$tab[8][4]= true;
$tab[8][5]= true;
$tab[8][6]= true;
$tab[8][7]= true;
$tab[8][8]= true;
$tab[8][9]= true;
$tab[8][10]= true;
$tab[8][11]= true;
$tab[8][12]= true;
$tab[8][13]= true;
$tab[8][14]= true;
$tab[9][1]= true;
$tab[9][2]= true;
$tab[9][3]= false;
$tab[9][4]= true;
$tab[9][5]= true;
$tab[9][6]= true;
$tab[9][7]= true;
$tab[9][8]= true;
$tab[9][9]= true;
$tab[9][10]= true;
$tab[9][11]= true;
$tab[9][12]= true;
$tab[9][13]= true;
$tab[9][14]= true;
$tab[10][1]= false;
$tab[10][2]= true;
$tab[10][3]= true;
$tab[10][4]= true;
$tab[10][5]= true;
$tab[10][6]= true;
$tab[10][7]= true;
$tab[10][8]= true;
$tab[10][9]= true;
$tab[10][10]= false;
$tab[10][11]= true;
$tab[10][12]= true;
$tab[10][13]= true;
$tab[10][14]= false;
$tab[11][1]= true;
$tab[11][2]= true;
$tab[11][3]= true;
$tab[11][4]= true;
$tab[11][5]= true;
$tab[11][6]= true;
$tab[11][7]= true;
$tab[11][8]= true;
$tab[11][9]= true;
$tab[11][10]= true;
$tab[11][11]= true;
$tab[11][12]= true;
$tab[11][13]= true;
$tab[11][14]= true;
$tab[12][1]= true;
$tab[12][2]= true;
$tab[12][3]= true;
$tab[12][4]= true;
$tab[12][5]= true;
$tab[12][6]= true;
$tab[12][7]= true;
$tab[12][8]= true;
$tab[12][9]= true;
$tab[12][10]= true;
$tab[12][11]= true;
$tab[12][12]= true;
$tab[12][13]= true;
$tab[12][14]= true;
$tab[13][1]= true;
$tab[13][2]= true;
$tab[13][3]= false;
$tab[13][4]= true;
$tab[13][5]= true;
$tab[13][6]= true;
$tab[13][7]= true;
$tab[13][8]= true;
$tab[13][9]= true;
$tab[13][10]= true;
$tab[13][11]= true;
$tab[13][12]= true;
$tab[13][13]= false;
$tab[13][14]= true;
$tab[14][1]= false;
$tab[14][2]= true;
$tab[14][3]= true;
$tab[14][4]= true;
$tab[14][5]= true;
$tab[14][6]= true;
$tab[14][7]= true;
$tab[14][8]= true;
$tab[14][9]= true;
$tab[14][10]= false;
$tab[14][11]= true;
$tab[14][12]= true;
$tab[14][13]= true;
$tab[14][14]= false;
if ($tab [couleur1][couleur2]) echo " Très beau ramp;eacute;sultat";
else echo "Ramp;eacute;sultat impossible";
}
?>
-------------------------------------------------------
code html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
[ Lien ]">
<html>
<head>
<title>Document sans nom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #CC9999;
margin-left: 0px;
margin-top: 0px;
}
.Style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #660033;
font-weight: bold;
}
a:link {
color: #663366;
}
a:visited {
color: #CCCCCC;
}
.Style3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #663333;
font-weight: bold;
}
.Style4 {
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
.Style5 {
font-size: 12px;
color: #666666;
font-style: italic;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.Style13 {font-size: 14pt}
.Style15 {
font-size: 18px;
font-weight: bold;
color: #333333;
}
-->
</style>
</head>
<body>
<table width="50%" border="1" cellspacing="0" bordercolor="#663366" bgcolor="#493041" >
<tr align="left" valign="top" bgcolor="#FFFFFF">
<td height="92" colspan="4"><img src="baniere.gif" width="850" height="85"></td>
</tr>
<tr>
<td width="3%" rowspan="2" bgcolor="#493041"> </td>
<td colspan="2" bgcolor="#FFFFFF"><div align="center" class="Style1">Bienvenue sur le site consacré aux Chinchillas </div></td>
<td width="23%" rowspan="2" align="center" valign="top" bgcolor="#493041"><table width="100%" >
<tr>
<td height="30" align="center"><div align="center" class="Style4">News</div></td>
</tr>
<tr>
<td height="86" align="center" bordercolor="#FFFFFF" bgcolor="#CCCCCC"><marquee id="scroller" scrollamount="1" direction="up" width="100" height="50"
onmouseover="javascript:scroller.stop()" onmouseout="javascript:scroller.start()">
» <font color="#000000">Voici un script bien utile pour qui veut afficher un panneau de news sur son site !<br>
Vous pouvez bien entendu y insérer du code HTML !<br>
» Par exemple, mettre en <b>gras</b>, <i>italique</i>, <u>souligné</u>,</font> <font
color="red">couleur</font>, etc... ou mettre un <a href="#">lien</a> !<br>
</marquee></td>
</tr>
<tr>
<td height="230" align="center" valign="middle"><div align="center"><font color="white" size="2" face="arial"><BR><SCRIPT language=javascript>
// Script réalisé par
[ Lien ]
// Reproduction gratuite à condition de laisser ce commentaire
var ferie=new Array("01/01","01/05","08/05","14/07","15/08","01/11","11/11","25/12");
var mois=new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre");
function disp(txt) { document.write(txt) }
function estFerie(j,m) {
var nb=ferie.length;
var test=false;
for(var i=0;i<nb;i++) {
if ((ferie[i].substring(0,2)==j)&&(ferie[i].substring(3,5)==m)) return true;
}
return false;
}
function calendar(colFond,colTitre,colTexte,colFerie,colOn) {
var d_jour=new Date();
var a=d_jour.getYear(); if (a<1970) {a=1900+a}
var m=d_jour.getMonth()+1;
var d=new Date(a,m-1,1);
var dfin=new Date(a,m-1,1);
var nb_jour=31;
var aff_j="";
for(var k=32;k>27;k--) {
dfin.setMonth(m-1);
dfin.setDate(k);
if (dfin.getMonth()!=m-1) {nb_jour=k-1;}
}
var j1=d.getDay(); if (j1==0) j1=7;
var jour=0;
disp("<FONT FACE='Arial' size='-1'><CENTER><B>"+mois[m-1]+" "+a+"</B></CENTER></FONT>");
disp("<TABLE border=0 cellspacing=0 cellpadding='2'>");
disp("<TR align='center' bgcolor='"+colTitre+"'><TD width='10'>L</TD><TD width='10'>M</TD><TD width='10'>M</TD><TD width='10'>J</TD><TD width='10'>V</TD><TD width='10'>S</TD><TD width='10'>D</TD></TR>");
for(var i=0;i<6;i++) {
disp("<TR>");
for (j=0;j<7;j++) {
jour=7*i+j-j1+2;
aff_j=jour;
if ((jour==d_jour.getDate())&&(m==d_jour.getMonth()+1)) {aff_j="<FONT size='-1' color='"+colOn+"' face='Arial'><I><U>"+jour+"</I><U></FONT>";}
if ((7*i+j>=j1-1)&&(jour<=nb_jour)) {
if ((j==6)||(estFerie(jour,m))) disp("<TD width='10' bgcolor='"+colFerie+"' align='center'><FONT face='Arial' size='-1' color='"+colTexte+"'>"+aff_j+"</FONT></TD>");
else disp("<TD width='10' bgcolor='"+colFond+"' align='center'><FONT face='Arial' size='-1' color='"+colTexte+"'>"+aff_j+"</FONT></TD>");
}
else disp("<TD width='10' bgcolor='"+colFond+"'><FONT size=-1> </TD>");
}
disp("</TR>");
}
disp("</TABLE>");
}
</SCRIPT>
<FONT face=arial color=navy size=2></FONT>
<CENTER>
</CENTER>
<font color="white" size="2" face="arial"><BR>
<BR>
<BR>
<BR>
<center>
<SCRIPT type='text/javascript'>
// Affiche le calendrier
// calendar(colFond,colTitre,colTexte,colFerie,colOn)
calendar("#996666","silver","white","#660066","red");
</SCRIPT></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="459" colspan="2" bgcolor="#FFFFFF"><table width="100%" height="399" >
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF"><div align="left" class="Style3">
<div id="Layer5" style="position:absolute; left:42px; top:133px; width:583px; height:384px; z-index:10; overflow: auto; background-color: #FFFFFF; layer-background-color: #FFFFFF; text-align:justify; font-size:12pt; padding-right:20px; scrollbar-3dlight-color :white; scrollbar-arrow-color : white; scrollbar-base-color :#660066; scrollbar-darkshadow-color :; scrollbar-face-color :#894343; scrollbar-highlight-color :white; scrollbar-shadow-color :; scrollbar-track-color :; border: 1px none #000000;">
<p align="center" class="blockText Style13"><a href="index.htm"><Retour au Sommaire></a></p>
<P>
<CENTER class="Style15">
<U>Il faut choisir deux couleurs</u>
</CENTER>
<form name="monfor" methode="get" action="coul.php">
<font color="#FFFFFF">1er choix </font>
<p>
<select name="couleur1">
<option value="1">Black_velvet</option>
<option value="2">Harcoal</option>
<option value="3">Ebony</option>
<option value="4">Wilson</option>
<option value="5">Starlite</option>
<option value="6">Albinos</option>
<option value="7">Beige_tower</option>
<option value="8">Champagne</option>
<option value="9">Almond_blossoin</option>
<option value="10">Beige_velvet</option>
<option value="11">Afro_violet</option>
<option value="12">Pastel</option>
<option value="13">Saphir</option>
<option value="14">Saphir_velvet</option>
</select>
<p> <font color="#FFFFFF">2e choix </font>
<p>
<select name="couleur2">
<option value="1">Black_velvet</option>
<option value="2">Harcoal</option>
<option value="3">Ebony</option>
<option value="4">Wilson</option>
<option value="5">Starlite</option>
<option value="6">Albinos</option>
<option value="7">Beige_tower</option>
<option value="8">Champagne</option>
<option value="9">Almond_blossoin</option>
<option value="10">Beige_velvet</option>
<option value="11">Afro_violet</option>
<option value="12">Pastel</option>
<option value="13">Saphir</option>
<option value="14">Saphir_velvet</option>
</select>
<br>
<br>
<br>
<input name="submit" type="submit" value="Le résultat!">
</form>
<P align="center">
<CENTER>
<img src="race.jpg" width="131" height="131">
</center>
<p class="blockText Style13"> </p>
<P class="Style5">
<CENTER><p><span class="blockText Style13"><a href="index.htm"><Retour au Sommaire></a></span> </p>
</CENTER>
<p class="blockText"> </p>
<p class="blockText"> </p>
<p align="center" class="Style4 Style1 blockTextEdito"> </p>
<p></p>
</div>
<p> </p>
<p> </p>
<p> </p>
</div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>