i am using this code on my form page:

<form action="uploadAd2.php" enctype="multipart/form-data" method="post" name="adForm" id="adForm"> <input type="hidden" name="donorID" value="<?php echo $_GET['ID']; ? >" />
<input type="hidden" name="MAX_FILE_SIZE" value="3000000000" />
<input type="file" name="upload1" />
<input type="image" src="admin/images/next.png" name="Submit" alt="Submit Form" />



my upload code is below:


$uploaddir = 'admin/advertisements/';
$uploadfileTmp = basename($_FILES['upload1']['name']);
$uploadfile = $uploaddir . basename($_FILES['upload1']['name']);
if (move_uploaded_file($_FILES['upload1']['tmp_name'], $uploadfile)) {
        $FileName = $uploadfileTmp;
} else {
        echo "Error!";
        exit();
}





my error is:


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

---


any ideas? i have no access to error.log...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to