I have an html form that allows users to upload images to the server. The images uploaded are supposed to replace the current images on the server (i.e. renaming the new and overwriting the old file). This works fine; however, instead of hardcoding the file name into the PHP file, I'd like for the user to select the file they want to overwrite by selection the appropriate radio button.
How do I get PHP to use the value of the radio button selected as the filename?