upload succeeding but picture is not there
<p>I have a php page that is supposed to store the uploaded image to my server. When I run this, I get the "Upload successful" message, but the picture has not been uploaded. 
What could it be?</p>

<p>update: can people please leave a comment as to why they down vote my question. I'm new here and I dont know why this question got down voted. thanks</p>

<pre><code>&lt;?

if(!empty($_FILES['uploaded_file'])) {
    if ($_FILES['uploaded_file']['error'] &gt; 0 )
        echo "Error: " . $_FILES['uploaded_file']['error'] . "&lt;br /&gt;";
    else{
        // Add the original filename to target path.  
        $target_path = 'MemberPics\\user'.$userid.'.jpg' ; 
        $success = move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $target_path);

        if(!$success) {
            echo "There was an error uploading the file, please try again!";
        }else {
            echo "Upload successful, please go back to your home page";

        }       
    }
}   
 ?&gt;
</code></pre>
