Bonjour,
Je n'arriver pas a récuperer la variable $filename de ce code :
page:index.php
<?
$ip = $_SERVER['REMOTE_ADDR'];
$dir = "C:\\Program Files\EasyPHP1-7\www\SOHO2MotionFiles\\";
echo '<br /><br />';
$dh = opendir($dir);
while (false !== ($filename = readdir($dh))) {
//$files[] = $filename;
if ($filename[0] == '.') continue;
if (! strstr($filename, 'avi')) continue;
echo '<li> <a href="index1.php?film=',$filename,'&client=',$_SERVER['REMOTE_ADDR'],'">', $filename,'</a><br />';
}
//sort($files);
//print_r($files);
//$files1 = scandir($dir);
//print_r($files1);
?>
Page index1.php:
<?
$filename = $_POST ['$filename'];
echo( "<b>Login:</b> la$filename<b>password:</b> 1234</b><br>\n" ) ;
?>
Erreur:Notice: Undefined index: filename
Que dois je faire?
Merci