There are actually 2 page involve in my project.The 1st page is a form that to submit the uploaded image into 2nd page based on action=\"2page.php\"
and will di
if your goal is to upload an image and store it in a directory on the server then this code sample might help get you started (though I won't swear that it's bug free or secure). It's a single page form to upload, save, and display an image.
$value){
$image_tmp = $value['tmp_name'];
$image = $value['name'];
$image_file = "{$UPLOADDIR}{$image}";
// move the file to the permanent location
if(move_uploaded_file($image_tmp,$image_file)){
echo <<