den uploader ikke billedet
hvordan kan det være at der ikke bliver oploadet noget billede her ? jeg kan ikke lige finde fejlen.if(($_POST['upfile']) && ($upfile != "none")){
$tmpnavn = getdate();
$nytnavn = $tmpnavn["year"] . $tmpnavn["mon"] . $tmpnavn["mday"] . $tmpnavn["hours"] . $tmpnavn["minutes"] . $tmpnavn["seconds"] . RAND(0,999);
move_uploaded_file($upfile,"test/$nytnavn.jpg");
$size = getimagesize("test/$nytnavn.jpg");
$width = $size["0"];
$height = $size["1"];
$type = $size["2"];
if($type==2 and $width!=0 and $height!=0){
$img = "$nytnavn.jpg";
$dest_width = 210;
$dest_height = $height/($width/$dest_width);
$src_img = imagecreatefromjpeg("test/$nytnavn.jpg");
$dst_img = imagecreatetruecolor($dest_width,$dest_height);
imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, $dest_height, $width, $height);
imagejpeg($dst_img, "test/$nytnavn.jpg", 90);
imagedestroy($src_img);
imagedestroy($dst_img);
}
else{
unlink("test/$nytnavn.jpg");
$img = "";
}
}
