Page 1 of 1

Contact Form + Upload Form in One

Posted: Fri Jul 29, 2011 3:05 pm
by matrixx1
My client would like to have an upload form and contact form built to be one. Is this possible considering they are doing two different functions (emailing data and uploading files to the server). Please see the attached image of would I would like to achieve. Is there a script that does it all and if not can you combine the two?

Image

Re: Contact Form + Upload Form in One

Posted: Fri Jul 29, 2011 3:16 pm
by greyhoundcode
Yes, you can have text inputs, textareas and whatever else in combination with file inputs (ie, <input type="file" ... />). Remember to set the form enctype to multipart/form-data (see here).

Also remember to consider your server/PHP configuration in respect of the likely file sizes.