mksalva
asked on
Can I Add an "Upload File" Feature to HTML Submit Form?
I have a simple Submit form on our organization's network, and I receive the form results in my e-mail.
This is a VERY SIMPLY HTML SUBMIT FORM. How tough would it be to add the option where users can attach files to the form?
Thx,
Mike
This is a VERY SIMPLY HTML SUBMIT FORM. How tough would it be to add the option where users can attach files to the form?
Thx,
Mike
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<form action="mailto:xxxx@xxxxxx xx.org" method="post" enctype="text/plain" name="form1">
Yeah, this won't work for file uploads, because there is no scripting method to handle the file. You need to enable PHP or ASP on the server and write a script to handle this form. Alternately, you can use Perl or Python if that's easier to install. Perl's cgi.pm module has a good file upload handler...
Yeah, this won't work for file uploads, because there is no scripting method to handle the file. You need to enable PHP or ASP on the server and write a script to handle this form. Alternately, you can use Perl or Python if that's easier to install. Perl's cgi.pm module has a good file upload handler...
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
ASKER
In case it matters, this form is only on our network, and only people in our organization have access to it. We all have Outlook, so the e-mail is sent via Outlook.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>"The Blue Form" - Submit a Web Request</title>
</head>
<body background="html_images/bl
<p> </p>
<table width="800" border="0" align="center" cellpadding="8" cellspacing="0" bordercolor="#16788D" bgcolor="#58cae4">
<tr>
<td background="html_images/bo
<font color="#000000" size="3">TBC Web Site Request Form </font></font></strong></t
</tr>
<tr>
<td><form action="mailto:xxxx@xxxxxx
<p><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">If you have any files that must accompany this web request, please put them in the Shared/Web folder, or e-mail them to XXXX XXXXX.</font></strong></p>
<table width="98%" border="1" align="center" cellpadding="6" cellspacing="2" bordercolor="#FFFFFF">
<tr>
<td><center>
<font face="Arial, Helvetica, sans-serif"><strong><em><f
</center></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="8">
<tr>
<td width="40%" align="right"><strong><fon
<td width="60%"><input name="Name" type="text" size="60"></td>
</tr>
<tr>
<td width="40%" align="right" valign="top"><font color="#000000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>Web Request Title </strong></font></td>
<td width="60%"><input name="Web Request" type="text" size="60"></td>
</tr>
<tr>
<td width="40%" align="right" valign="top"><p><font color="#000000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>Name and web address of existing page to be edited</strong></font></p>
<p><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Please include details, and indicate the location and names of applicable files.</font></p></td>
<td width="60%"><textarea name="Existing Page" cols="60" rows="7"></textarea></td>
</tr>
<tr>
<td width="40%" align="right" valign="top"><p><font color="#000000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>Create
<p><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Please include details, and indicate the location and names of applicable files.</font></p></td>
<td width="60%"><textarea name="Create New Page" cols="60" rows="7"></textarea></td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="Submit" value="SUBMIT WEB REQUEST!">
<br>
<em><font color="#000000" size="3" face="Arial, Helvetica, sans-serif"><strong>IMPORT
</tr>
</table>
</form> </td>
</tr>
</table>
<p> </p>
</body>
</html>