Rename file upload based on input
Posted: Wed Feb 15, 2012 8:34 am
Hi All,
I am trying to create an upload file form that has three fields. the first field will have the user's last name and the second field will be a drop down menu with a couple of selections.
What I want to happen is that when the user clicks on the submit button, I want the file to be uploaded and the file name changed to whatever they had in teh first 2 fields (ie. lastname+dropdownSelection.extension)
Any help is greatly appreciated as I am very new to php.
I am trying to create an upload file form that has three fields. the first field will have the user's last name and the second field will be a drop down menu with a couple of selections.
What I want to happen is that when the user clicks on the submit button, I want the file to be uploaded and the file name changed to whatever they had in teh first 2 fields (ie. lastname+dropdownSelection.extension)
Any help is greatly appreciated as I am very new to php.