The MySQL variable is 'animalPhoto'; a varchar of 50 characters with a NULL default.
What code do I need to:
1) Insert a Browse button into a form to select a file.
2) Make sure it is a .jpg type.
3) Check the file name for characters other than alphanumerics.
4) Remove any characters that are not alphanumeric.
5) Reduce (if nessessary) the file name to under 45 characters.
6) Alter the file name to avoid overwriting any existing files.
7) Record the file name (extention included) into the animalPhoto variable in the MySQL database record the rest of the form info is going into.
8) Upload the file into the folder '/images/animals' (relative location to the form's page) with the file name determined above.
If I need to change the order of any of these steps.
Many thanks for the help.
--
Rauhnee