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
Comment faire eactement , je suis débutant en php , donc ne soyez pas sévere avec mois, merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
43
44
45
46
47
48
49
50
51
52 <!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>
Partager