View Single Post
  #2 (permalink)  
Old 11-14-04, 01:53 PM
Dyllon Dyllon is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
This is the method I use, it's way better than putting a checkbox on your form.
I also use a function to upload the image incase I have several to upload.
If the upload function can help you let me know and I'll post it here.
I used 'img' for your field name.
PHP Code:

if (!empty($img)) {

       
$NewImage uploadImage($img$img_name);
}
else {
       
$NewImage "no_image.gif";
}
// insert $NewImage into your database 

Last edited by Dyllon; 11-14-04 at 01:55 PM.
Reply With Quote