Sample form code for a contact form with a file input field for uploading a file (See more user questions)
My pleasure, !
It occurred to me that in the time to reply to you twice, I could have given
you sample code for a basic contact form with a file upload field...here it
<form action="formtoemailpro.php" method="post" enctype="multipart/form-data">
<table border="0" style="background:#ececec" cellspacing="5">
<tr align="left"><td>Name</td><td><input type="text" size="30" name="name"></td></tr>
<tr align="left"><td>Email</td><td><input type="text" size="30" name="email"></td></tr>
<tr align="left"><td valign="top">Comments</td><td><textarea name="comments" rows="6" cols="30"></textarea></td></tr>
<tr align="left"><td>File</td><td><input type="file" name="file_upload"></td></tr>
<tr align="left"><td> </td><td><input type="submit" value="Send"></td></tr>
The world's easiest feedback script!
----- Original Message -----
Sent: Wednesday, February 16, 2011 11:11 AM
Subject: Re: FormToEmail script
Thanks Charles! I'll check into it today, and start experimenting.
Thanks again for such a great program!
> Subject: Re: FormToEmail script
> Date: Wednesday, February 16, 2011, 4:12 AM
> Hi .
> Thank you for your kind words...my pleasure to assist!
> If you look at the top of the script instructions, you will
> see code
> snippets required to make file inputs on your form. I
> don't have examples
> as such (mainly due to the countless variations of forms
> required by
> customers) but you just need to add the code to your
> existing form.
> Have a read through my support section too, if you get the
> Any questions, just let me know.
> Best wishes.
> Charles Sweeney
> The world's easiest feedback script!
> ----- Original Message -----
> Sent: Wednesday, February 16, 2011 1:26 AM
> Subject: FormToEmail script
> > Comments: Hi,
> > First - I love your PHP program!! It saved me
> countless hours of trying
> > to do that myself. Thank You for the great
> > I would like to make a contact form that allows the
> user to attach files.
> > Do you have any examples of doing this with HTML and
> your PHP Routine?
> > Any help is greatly appreciated. I'm
> very new to website programming.
> > Thanks!