Forum Moderators: coopster
im working on something for a client some CMS stuff, they want to edit images.
how it works,
admin_edit.php > loads a bunch of empty fields followed by a list of products vertically.
The user clicks one of the products form the list and the page reloads, filling the fields from a mysql DB table.
Problem is, when we load the info and echo it into the boxes on the screen, the input type file doesnt write anything in, so when we go to update the changes unless weve found the images on the HD again the field in the DB gets wiped out and the product pictures will dissapear.
is it possible to echo results into a files input type?
any other ideas besides throwing the laptop away?
thanx in advance
diegomh7
From php.net:
If no file is selected for upload in your form, PHP will return $_FILES['userfile']['size'] as 0, and $_FILES['userfile']['tmp_name'] as none.
thanx everyone, hope this post helps someone else out in the future,
diegomh7