I'm trying to create a file sharing site where I can display the links of all uploaded images. Once a user uploads one file, they will be able to both see the files already uploaded and upload another file. However, I'm having two problems at the moment:
1. I don't know how to re-display the main upload page once a user uploads an image.
2. I don't know how to dynamically create links based on the files present.

Your script opens your server to a total compromise. You have pathetically-easy-to-bypass "security". I suggest you kill this code and look for the MANY 'secure upload' script questions + answers on this site.
–
Marc BSep 30 '12 at 23:03

This code isn't for commercial purposes. It will not be a public file and security will be coming for other things. For now, I need to figure out how to create a dynamic list in the main file based on what's going on in the file uploading script.
–
MrMedia715Sep 30 '12 at 23:13

1) Use Header functionheader('Location: ... '); for redirect user to main upload page
2) You need to use *sql solution to store file links and display them.
2a) Give unique file name to all uploaded files(i.e md5($file['name'])