PHP File Upload

Ok… well here is the php code that I am running…

<?php
 	$uploadDir = "../upImages";
 	$uploadfile = $uploadDir . $_FILES['upPic']['name'];
 	if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)){
 		echo "upload succesful";
 	} else {
 		echo "failed...";
 	}
 ?>

And here is the html page that submits to it…

<html>
<title>Buy Legends - Picture Upload</title>
<body>
<form name="upPics" enctype="multipart/form-data" action="uploadPicAction.php" method="post">
<input type="file" name="upPic">
<input type="hidden" name="PASS" value="nhy67ujm">
<input type="submit" name="upload" value="upload">
</form>
</body>
</html>

Also… as far as permissions have run… I have ran both
chmod 777 upImages…&
chmod 766 upImages
it doesn’t work under either one… Please help.