par
fraisa1985 » 07 juil. 2008, 19:57
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
Code : Tout sélectionner
<!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>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<div align="center"><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<input type="text" name="textfield" accesskey="r" />
<input type="button" value="Search" onclick="window.location.href='recherche.php'" />
<br />
<br />
<input name="radiobutton1" type="radio" value="radiobutton"/>
Ararb/English search
<input name="radiobutton2" type="radio" value="radiobutton" checked="checked" />
Standard search</div>
</label>
</form>
</body>
</html>
Comment faire exactement , je suis débutant en php , donc ne soyez pas sévere avec mois, merci d'avance
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
[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>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<div align="center"><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<input type="text" name="textfield" accesskey="r" />
<input type="button" value="Search" onclick="window.location.href='recherche.php'" />
<br />
<br />
<input name="radiobutton1" type="radio" value="radiobutton"/>
Ararb/English search
<input name="radiobutton2" type="radio" value="radiobutton" checked="checked" />
Standard search</div>
</label>
</form>
</body>
</html>[/code]
Comment faire exactement , je suis débutant en php , donc ne soyez pas sévere avec mois, merci d'avance