Trover L. thanks for your help but there is still a problem
this mean the sender has to has a mail clint
the server i use has FT extinsions but i still cant do the form
the form URL is
http://www.dohavets.com/feed back.html
:
elhossan wrote:
the form i want to use is very simple i just want to know the feed
back from the site visitor. and what do do if i want the data to be
sent to my email?
Do you want the data from the form as an email to you?
If so, try the below
This doesn't need FP extensions. I know as my site doesn't have them and
this works for me
<html>
<head>
<script type="text/javascript">
function testform()
{
// put any tests in here
}
// --------------------
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
body += elements[j].name + ": "
+ elements[j].value
+ '%0d%0a' // line break after each line
j += 1
} // end while
}
window.location = "mailto:" + "name" + "@" + "domain" + ".com"
+ "?subject=Response%20from%20Form"
+ "&body=" + body
}
// --------------------
</script>
</head>
<body>
<form id="form1" name="form1" action="" >
<div style="padding:10px; font:normal 12px Arial; text-align:left;">
<p>
Hi all,<br />
<!-- Add your introductory text here -->
</p>
<p>
Please enter details<br/>
Name:<br/>
<input type="text" name="Name" value="Insert name" size="40" /><br/>
Email:<br/>
<input type="text" name="Email" value="Insert e-mail address"
size="40" /><br/>
<!-- enter other <input> or <textarea> here -->
Enter Comment:<br/>
<textarea name="Comment" rows="10" cols="100">Enter your comment in
here</textarea><br />
</div>
<div align="center">
<input type="button" name="submit" value=" Send "
onmouseover="testform()" onclick="sendform()" />
<input type="reset" name="reset" value=" Clear "/>
</div>
</form>
</body>
</html>