-
I have designed forms on my web site using HTML and CGI-EMAIL to process the forms to my email. That works great – plain text.
But I need to put a "file upload button" to work on one of my pages form. I use Dreamweaver and have the button in place. I just need help with the code to make the button perform properly. I am not sure if CGI-EMAIL can handle this action? I would
If you have any suggestions please help me out.
-
Not sure what you mean by CGI-EMAIL, do you have a link to a website? (http://web.mit.edu/wwwdev/cgiemail/ maybe?)
To have a file upload box you need to have some form xhtml that looks like
HTML Code:
<input name="file" type="file" />
Once clicked that will open a dialog box in which you would select the fileyou wish to upload.
Do you need help with the actual uploading? What does your host support, just perl?
-
<input type="file" id="upload" size="48" />
I have the Xhtml code: my problem comes in on the server side.
Here is the form: http://www.realestateloop.net/menu/contributeform.html
Im not sure how to go about setting this function up on the server side:
The form works just fine. i get the text (name, Email,...etc). i just dont get the file.
-
What languages does your host support? CGI-EMAIL sounds perl to me, maybe they have an addon that accepts files?
-
http://www.hostmonster.com/
Here is my host.. and If you click "Live Demo" The cpanel will come up. I dont see anything like what your talking about, but maybe you can take a look. cgiemail is perl.
here is a link to cgi-email : http://web.mit.edu/wwwdev/cgiemail/user.html and the instructions on how i set it up.
Thanks for your help
-
Seeing as your form-emailer is written in Perl it would make sense to do the uploading in perl too, http://www.sitepoint.com/article/upl...files-cgi-perl
Also maybe search this forum, I think someone would have already asked this question. Good luck.