--------------------------------------------------------------------------------

Bonjour à tous,

Voilà donc je souhaite télécharger des fichier dans un dossier qui est sélectionner grace à une liste.
Mais ca beug???
quand je valide ce bloque...

Quelqu'un aurais une idée?


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
 
 
$dossier= isset($_POST['dossier']) ? $_POST['dossier'] : '';
$path="$path/"."$dossier";
 
 
if (!isset($_FILES["pictures"])) {
echo "<center><span style=\"font-size:25px\">Albumphoto Upload:</span></center><br>";
echo "<center><b>". _titre2 ."</center><br></b>";
echo "". _attention ."";
echo size(max_upload_size());
echo "". _attention2 ."";
echo "". _conseil ."";
echo "". _conseil2 ."";
 
 
 
 
echo'<table width="90%" border="0">';
echo'<tr>';
echo'<td width="50%">';
 
echo'<form action="" method="post" enctype="multipart/form-data">';
echo'<p>';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
echo'<br><input type="file" name="pictures[]" />';
 
 
 
 
 
 
echo "<BR><b>"._TOPIC."</b><select name=\"dossier\">";
$toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext");
echo "<option value=\"\">"._ALLTOPICS."</option>\n";
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
$topics = filter($topics, "nohtml");
if ($topicid==$dossier) { $sel = "selected "; }
echo "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "</select><br><br>";
 
echo'<br><br><input type="submit" value=" VALIDER " />';
?>
</p>
</form>
</td>
<td width="50%">



Merci à vous