Below is the code upload image...but I couldn't see the error..
Is that the correct code for upload image?
Code:
<?php
if (isset($_POST['btn_uplaodpic']))
{
$id = $_POST['hf_uname'];
move_uploaded_file($_FILES['file']['tmp_name'],"images/".$id.".jpg");
echo "Successfully upload!";
}
?>