mon code marchait avant de voir le message qui s'affiche sur le web local qd je l'ouvre:undefined index..........
voila mon code:il s'appelle connexion.php:
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
<?php
$server='localhost';
$user='root';
$pass='';
$db='etudiant';
mysql_connect($server,$user,$pass) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());
 
 
//variables 
$code=$_POST['code'];
$s_code=$_POST['s_code'];
 
$nom=$_POST['nom'];
$prenom=$_POST['prenom'];
$promotion=$_POST['promotion'];
$prof1=$_POST['prof1'];
$prof2=$_POST['prof2'];
$prof3=$_POST['prof3'];
$prof4=$_POST['prof4'];
$note1=$_POST['note1'];
$note2=$_POST['note2'];
$note3=$_POST['note3'];
$note4=$_POST['note4'];
$d_examen1=$_POST['d_examen1'];
$d_examen2=$_POST['d_examen2'];
$d_examen3=$_POST['d_examen3'];
$d_examen4=$_POST['d_examen4'];
$modele1=$_POST['modele1'];
$modele2=$_POST['modele2'];
$modele3=$_POST['modele3'];
$modele4=$_POST['modele4'];
 
?>
et voila mon index.php:
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?
// Par défaut : anglais
$directoryListing = "Folders in server root (\"www\")";
$noDir = "no folder";
$presentation = "This page display folders in server root. You can delete this page if you want to organize differently the folder. There'e a backup oh this file in &quot;safe&quot; directory (index-safe.php).";
 
$browser_languages = explode(",", getenv("HTTP_ACCEPT_LANGUAGE"));
$nb_browser_languages = sizeof($browser_languages);
$browser_lang = "";	// ne pas initialiser
$biContinue = true;
 
for ($niI = 0; $biContinue==true && $niI < $nb_browser_languages; $niI++)
{
	$biContinue = false;
	$lg = explode("-", $browser_languages[$niI]);
	switch ($lg[0])
	{
	case "fr" : $directoryListing = "R&eacute;pertoire(s) &agrave; la racine du serveur (\"www\")";
				$noDir = "aucun répertoire";
				$presentation = "Cette page permet de visualiser les r&eacute;pertoires plac&eacute;s &agrave; la racine du serveur. Si vous souhaitez organiser autrement le r&eacute;pertoire &quot;www&quot;, vous pouvez effacer ce fichier. Il en existe une copie de sauvegarde dans le r&eacute;pertoire &quot;safe&quot; (index-safe.php).";
				break;
	case "en" : break;
	default: $biContinue = true;
	}
}
 
?>
<html>
<head>
<title>[EasyPHP] - Web Local</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.text1 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: White;text-align : left;}
.text2 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: Silver;text-align : left;}
.titre1 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;font-weight: bold;color: #FFFFFF;}
.titre2 {font-family: Arial, Helvetica, sans-serif;font-size: 12px;font-weight: bold;color: #cccccc;}
</style>
</head>
 
<body bgcolor="#525A73">
 
<div align="center">
<table width="400" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td>
<a href="index.php"><img src="images_easyphp/titre_easyphp_weblocal.gif" width="387" height="116" border="0"></a>
</td>
</tr>
<tr>
</table>
</div>
 
<table width="500" border="0" cellspacing="4" cellpadding="0" align="center">
<tr> 
<td><img src="images_easyphp/cube_rouge_small.gif" width="18" height="20"></td>
<td width="100%" nowrap class="titre1">&nbsp;<? echo $directoryListing; ?>&nbsp;:</td>
</tr>
</table>
 
<table width="500" border="0" cellspacing="2" cellpadding="0" align="center">
<?
$rep=opendir('.');
$bAuMoinsUnRepertoire = false;
while ($file = readdir($rep)){
	if($file != '..' && $file !='.' && $file !=''){ 
		if (is_dir($file)){
			$bAuMoinsUnRepertoire = true;
			print("<tr><td nowrap class='text1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");
			print("<td width='100%' class='text1'>");
			print("&nbsp;&nbsp;<img src='images_easyphp/dossier.gif' width='23' height='16' align='absbottom'>&nbsp;");
			print("<a href='$file/' class='text1'>$file</a>");
			print("</td></tr>");
		}
	}
}
if ($bAuMoinsUnRepertoire == false) {
	print("<tr><td nowrap class='text1'><div align='center'>-&nbsp; $noDir &nbsp;-</div></td>");
	print("</td></tr>");
}
 
closedir($rep);
clearstatcache();
?>
</table>
 
<br>
 
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="text1">
<? echo $presentation ?> 
</td>
</tr>
</table>
</body>
</html>
je veux juste dire que ca marchait avant.
merci pour l'aide