Bonjour,
voilà j'ai le code suivant :
Je sais pourquoi il ne fonctionne pas... je n'ai pas dit à la requete affich où il devait prendre ses informations pour le GET... Seulement je ne sais pas comment faire .
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 <?php include ("../connexion.php"); $sqlquery="SELECT eid,subject FROM phpc_events ORDER BY eid"; $results= mysql_query($sqlquery); $sqlaffich="SELECT phpc_occurrences.eid, phpc_occurrences.startdate, phpc_occurrences.enddate, phpc_occurrences.starttime, phpc_occurrences.endtime, phpc_events.eid, phpc_events.subject FROM phpc_occurrences, phpc_events WHERE phpc_occurrences.eid=phpc_events.eid AND phpc_occurrences.eid=".$_GET['phpc_events.subject']; $res_affich=mysql_query($sqlaffich); $row_affich=mysql_fetch_array($res_affich); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <head> <title>S'inscrire à un cours</title> </head> <body> <FORM NAME="a_them" ACTION="inscription_cours_ok.php" METHOD="GET" enctype="multipart/form-data"> <p class="adm_txtform">Choisir un thème :</p> <SELECT name="subject"> <?php while ($row=mysql_fetch_array($results)) { ?> <OPTION value="<?php echo $row['eid'] ;?>"><?php echo $row['subject']; ?></OPTION> <?php } ?> </SELECT><br /> Date du cours : <?php echo $row_affich['startdate']; ?> Horaires : <?php echo $row_affich['starttime']; ?> à <?php echo $row_affich['endtime']; ?><br /> S'inscrire à ce cours ? <INPUT TYPE="submit" VALUE="Valider" name="valid" id="ok"> </form> </body> </html>
Je voudrais que lorsque la personne choisie une option dans le champ select, la date et l'heure de cette option figure juste en dessous...
Si quelqu'un pouvait m'aider et m'expliquer aussi le code à mettre que je me couche pas idiote ce soir
Merci par avance
Partager