Hey,
ik krijg mijn upload script maar niet werkend en ik vroeg me af wat ik fout doe... (en als je een betere manier weet mag je het ook zeggen
ik krijg mijn upload script maar niet werkend en ik vroeg me af wat ik fout doe... (en als je een betere manier weet mag je het ook zeggen

[COLOR= #0000BB]<?php
$Error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$target_path_thumb[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"../images/productfotos/thumbnails/"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$target_path_brochure[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"../images/productfotos/brochure/"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$target_path_thumb[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$target_path_thumb[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]thumbnail[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$target_path_brochure[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$target_path_brochure[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]brochure[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/move_uploaded_file"]move_uploaded_file[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]thumbnail[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]tmp_name[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$target_path_thumb[/COLOR][COLOR= #007700])) {[/COLOR]
[COLOR= #0000BB]$Error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Het is niet gelukt om uw thumbnail-bestand up te loaden<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/move_uploaded_file"]move_uploaded_file[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_FILES[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]brochure[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]tmp_name[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$target_path_brochure[/COLOR][COLOR= #007700])) {[/COLOR]
[COLOR= #0000BB]$Error[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Het is niet gelukt om uw thumbnail-bestand up te loaden<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
?>
<form method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="10000" />
<strong>Upload brochure</strong><br />
<input type="file" name="brochure" value=""><br /><br />
<strong>Upload thumbnail</strong><br />
<input type="file" name="thumbnail" value=""><br /><br />
<input type="submit" value="Voer wijzigen door.">
</form>
show anders de fout van het script ?
.