reidgivens
Technical User
I have two forms, one to add information to a mysql database and one to edit information in the same db.
Both forms submit pages are almost identical, but on the add form set, it uploads images just fine, but on the edit book one (using the same code) no $_FILE variables are set. Its like nothing ever gets to the submit page.
Although I can't see how this would make any differnece, here is the coping code used in both pages
<---------------- code start
if(!empty($_FILES['image'])){
$filename=$_FILES['image']['name'];
$copyto="../images/books/".$filename;
if(!$copy=copy($_FILES['image']['tmp_name'],$copyto)){
die("image upload failed"
;
}
} else {
$filename='spacer.gif';
}
<---------------- code end
Reid Givens
Webdeveloper
Both forms submit pages are almost identical, but on the add form set, it uploads images just fine, but on the edit book one (using the same code) no $_FILE variables are set. Its like nothing ever gets to the submit page.
Although I can't see how this would make any differnece, here is the coping code used in both pages
<---------------- code start
if(!empty($_FILES['image'])){
$filename=$_FILES['image']['name'];
$copyto="../images/books/".$filename;
if(!$copy=copy($_FILES['image']['tmp_name'],$copyto)){
die("image upload failed"
}
} else {
$filename='spacer.gif';
}
<---------------- code end
Reid Givens
Webdeveloper