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