Hallo Shadowcrow,
der Code sieht jetzt so aus:
if(isset($_POST['submit']) && $_POST['submit']=="abschicken"){
if($userfile == "") {
...
}
else {
$userfile_name = str_replace("ä","ae",$userfile_name);
$userfile_name = str_replace("ö","oe",$userfile_name);
$userfile_name = str_replace("ü","ue",$userfile_name);
if (file_exists("$dir/$subdir/".$userfile_name)) {
echo ("<head><META HTTP-EQUIV='refresh' content='2;URL={$_SERVER['PHP_SELF']}'>
<link href='../../Seiten/style.css' rel='stylesheet' type='text/css'></head>
<table class='info'>
<tr>
<td class='info'>Der Artikel existiert schon !</td>
</tr>
</table>");exit;
}
else {
move_uploaded_file($userfile, "./shop/pics/".$userfile_name);
}
}
if($artikelName == ""){ usw.
hat aber nichts gebracht
Gruss
hannes