Pretty similar. Like on my site, I allow the user to upload 1 image file (either JPG or GIF). Just by submitting the form, the file gets uploaded into the temp directory. There's no process to actually upload the file. The form handles it for you.
One thing I would change is how you move the files. Instead of:
move_uploaded_file($newname1,$uploaddir.'/'.$newname1);
I think you might have to reference the file by it's location in the temp directory like so:
move_uploaded_file($_FILES['picture']['tmp_name'], $uploaddir.'/'.$newname1)
Also, you want to check your naming convention. In one part, you called files like so "$newName1", but then you reference it by "$newname1".