
Contact Form + Upload Form in One
Moderator: General Moderators
Contact Form + Upload Form in One
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?


- greyhoundcode
- Forum Regular
- Posts: 613
- Joined: Mon Feb 11, 2008 4:22 am
Re: Contact Form + Upload Form in One
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.
Also remember to consider your server/PHP configuration in respect of the likely file sizes.