Hi i have problem getting a page to work the code for it is
<form enctype="multipart/form-data" action="image_upload.php" method="POST">
<input type="hidden" name="title" value="<? print ($title); ?>">
<input type="hidden" name="date" value="<? print ($date); ?>">
<input type="hidden" name="description" value="<? print ($description); ?>">
<input type="hidden" name="max_file_size" value="1000">
Send this file: <input name="userfile" type="file"><br>
<input type="submit" value="Send File">
</form>
and the code for the file image_upload.php is
if (!$userfile) {
print ("upload of file failed, please try again\n");
exit ();
}
rename ("$userfile", "photos/$title.jpg");
all i get is warning rename failed, you don't have permission and it doesn't upload or do anything, any help would be great, thanks Martin