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
   |  
 
 
<SCRIPT language="Javascript">
 
<!--
function verifier()
{
if(document.form1.rech.value.length<3)
{
alert("le nombre de caractéres doit etre supérieur à 3!");
 
}
else
{
document.form1.method=post;//je pense que la probléme est ici.
document.form1.action=resultat.php;
document.form1.submit();
}
}
// -->
 
</SCRIPT>
 
<head>
<body>
<form id="form1" name="form1" method="post" action="resultat.php" enctype="multipart/form-data" >
 
    <p align="center">
      <input name="rech" type="text" id="rech" />
       
      <input type="button" name="button" id="button" value="Search"  onclick="verifier()"/>
      <br />
      <label>
      <input type="radio" name="typ" value="1" id="Groupe de boutons radio1_0" />
      <strong>Arab/English Search</strong></label>
      <strong>
      <label>
      <input name="typ" type="radio" id="Groupe de boutons radio1_1" value="2" checked="checked" />
      Extended Search</label>
</body>
</html> |