HTML Forms (Text + Attachment)

liunx

Guest
Hi,<br />
<br />
I want to make an HTML form that will send by E-mail Text data as well as an attached file.<br />
<br />
The following code doesn't work properly:<br />
<br />
***********************************<br />
<html><br />
<head><br />
<script><br />
function redirect() {<br />
setTimeout("window.location='http://www.yahoo.com'",500);<br />
}<br />
</script><br />
</head><br />
<body><br />
<form action="MAILTO:[email protected]?subject=Attachment Test" method="post" ENCTYPE="multipart/form-data" onSubmit="redirect()"><br />
<h3>This form sends an e-mail to an E-mail address specified.</h3><br />
Name:<br><br />
<input type="text" name="name" value="yourname" size="20"><br />
<br><br />
Mail:<br><br />
<input type="text" name="mail" value="yourmail" size="20"><br />
<br><br />
Comment:<br><br />
<input type="text" name="comment" value="yourcomment" size="40"><br />
<br><br><br />
Attach File:<br />
<br><br><br />
<INPUT TYPE="file" NAME="attachedfile" MAXLENGTH=50 ALLOW="text/*" > <br />
<br><br><br />
<input type="submit" value="Send"><br />
<input type="reset" value="Reset"><br />
</form><br />
</body><br />
</html><br />
*****************************<br />
<br />
Please, could you help?<br />
<br />
Regards,<br />
Susha John.<!--content-->Hi Dave,<br />
<br />
Thanks a lot for your reply. I'll try the code.<br />
<br />
Have a nice time!<br />
<br />
Susha John<!--content-->
 
Back
Top