I have code for uploading a file to a server, and I have code for sending an email.
Is there a way to combine the two forms so that an email is generated with each upload?
Can I just add the mail() function to the upload code and pass the email variables in the same form that specifies the file?