Salut a tous, J'ai une page qui contient une champ texte de recherche et 2 bouton radio et une bouton submit pour la recherche.
selon le bouton radion selectionné j'ai doit effectué un type de recherche dans une tableau (sbgd: mysql)
voila mon code:
<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<script>
<script type='text/javascript' language = 'Javascript'>
function type_recherche()
{
if(radiobutton1.ischecked==true)
else
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Recherche</title>
<style type="text/css">
<!--
body {
background-color: #CCCCCC;
}
body,td,th {
font-weight: bold;
}
-->
</style></head>
<form id="form1" name="form1" method="post" action="">
<label>
"center">
"text" name="textfield" accesskey="r" />
"button" value="Search" onclick="window.location.href='recherche.php'" />
"radiobutton1" type="radio" value="radiobutton"/>
Ararb/English search
"radiobutton2" type="radio" value="radiobutton" checked="checked" />
Standard search
</label>
</form>
</html>
Comment faire exactement , je suis débutant en php , donc ne soyez pas sévere avec mois, merci d'avance