Contact Form + Upload Form in One

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
matrixx1
Forum Newbie
Posts: 8
Joined: Fri Apr 15, 2011 1:04 am

Contact Form + Upload Form in One

Post 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
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Contact Form + Upload Form in One

Post 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.
Post Reply