Salut a tous amis developpeur voila j'ai un souci dans mon code et je ne comprend pas pourquoi cela ne marche pas alors que tout semble nikel
J'ai 3 pages la premiere inclus la 2eme qui inclus la 3eme
par clic sur des boutons submit
La 1ere appel bien la 2eme mais la 2eme n'appel pas la 3eme hors le code a ete utilisé ds mes autres pages et cela marche tres bien mais pas cette fois WHY ???
ci-joint mon code des pages
La 3eme page est pas fini mais tant que sa echo pas je continu pas lool.
Merci d'avnce
code page 1
page 2
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 <?php /** * Fabien * RMN BASE DE DONNEES * Page 27 * Suppspool1.php * @version $Id$ * @copyright 2007 */ error_reporting(E_ALL); mysql_error(); session_start(); $connexion=mysql_connect("localhost","root",""); mysql_select_db("rmntest",$connexion); // Requête pour afficher la liste des modèles $reqspool="Select * from spoolnt"; $resultspool=mysql_query($reqspool,$connexion); ?> <html> <body> <DIV style="BACKGROUND: #544745; WIDTH: 100%; PADDING-TOP: 3px; PADDING-BOTTOM: 5px; LINE-HEIGHT: 1em; FONT-WEIGHT: bold; FONT-SIZE: 54px; FONT-FAMILY: Georgia,Times; COLOR: #98c5dc" onclick="top.location.href='http://...';"> <SPAN title="Aller à l'accueil" onmouseover="this.style.color='white';" onmouseout="this.style.color='#98c5dc';" style="COLOR: #98c5dc; CURSOR: hand"> SOS Imprimantes </SPAN> <SPAN style="PADDING-LEFT: 5px; FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #98c5dc; FONT-FAMILY: geneva,arial; VERTICAL-ALIGN: center"> </SPAN> </DIV> <DIV style="FONT-WEIGHT: bold; FONT-SIZE: small; COLOR: #544745; BACKGROUND: #98c5dc; WIDTH: 100%; FONT-FAMILY: system,geneva; TEXT-ALIGN: center"> BIENVENUE SUR SOS Imprimante <? $date = date("d-m-Y"); $heure = date("H:i"); Print("Nous sommes le $date et il est $heure"); ?> <br> <h1 p align=center>Supprimer un serveur d'impression <br> Spoolnt</h1> <a href="Accueil.php">Accueil</a> <br> <a href="connexadm.php">Administration</a> <br> <a href="Ajouterimp1.php">Ajouter une imprimante</a> <br> <a href="Modifier1.php">Modifier une imprimante</a> <br> <a href="Ajoutmodel1.php">Ajouter un modèle d'imprimante</a> <FORM id=FORM14 name=FORM14 action="Suppspool1.php" method=POST> <p align=center> <h4>Supprimer un modèle d'imprimante</h4> <br> <p align=center>1- Selectionnez le serveur a supprimer et cliquez sur "Afficher"<br></p> <p align=center>2- Vérifiez bien que le serveur afficher est celui que vous desirez supprimer et cliquez sur "Supprimer" </p><br><br> <H3>Selectionnez un serveur d'impression</H3> <select size="1" name="listespool"> <? while($ligne=mysql_fetch_array($resultspool)) { ?> <option value=<? echo $ligne['id_spoolnt'] ?>><? echo $ligne['nom_spoolnt']; } ?></option> </select> </p> <br> <input type="submit" value=" Afficher " name="Bouton400"> <? if (isset($_POST['Bouton400'])) { include "Suppspool2.php"; } ?> </body> </html>
page 3
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
53
54
55
56
57 <?php /** * Fabien * RMN BASE DE DONNEES * Page 28 * Suppspool2.php * @version $Id$ * @copyright 2007 */ error_reporting(E_ALL); mysql_error(); $connexion=mysql_connect("localhost","root",""); mysql_select_db("rmntest",$connexion); $idspool=$_POST['listespool']; $idspool2=$idspool; echo "<input type='text' name='cacheid2' value=$idspool2>"; $reqaff="Select * from spoolnt where id_spoolnt=".$idspool; $resultaff=mysql_query($reqaff,$connexion); ?> <html> <body> <FORM id=FORM14 name=FORM14 action="Suppspool2.php" method=POST> <table border="2" cellpadding="1" cellspacing="1" width="65%"> <tr> <td><center>identifiant</td> <td><center>Nom du serveur</td> <td><center>ip du serveur</td> </tr> <? while ($ligne40=mysql_fetch_array($resultaff)) { ?> <tr> <td><center><? echo $ligne40['id_spoolnt'] ?></td> <td><center><? echo $ligne40['nom_spoolnt'] ?></td> <td><center><? echo $ligne40['ip_spoolnt'] ?></td> </tr> <? } ?> </table> <br><br> <input type="submit" value=" Supprimer " name="Bouton50"> <? if (isset($_POST['Bouton50'])) { include "Suppspool3.php"; } ?> </body> </html>
Encore merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <?php /** * Fabien * RMN BASE DE DONNEES * Page 29 * Suppspool3.php * @version $Id$ * @copyright 2007 */ $idspool=$_POST['cacheid']; echo $idspool; ?>
Partager