Phil said:
Can I use a return form to e-mail without using FP Extensions, and if
so can someone be so kind to direct me to the relative script I will
need.
Many Thanks
Here is a simple page which takes the contents of a form and writes it to
an email to
(e-mail address removed)
Add extra <input>'s or <textarea>'s as required. Just leave the last two
<html>
<head>
<title>Form Test</title>
<script type="text/javascript">
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
var tname = elements[j].id
body += tname + ": "
if (tname == "Comment")
body += '%0d%0a' // line break before comment text
body += elements[j].value + '%0d%0a' // line break after
each line
j += 1
} // end while
}
window.location = "mailto:" + "me" + "@" + "mydomain" + ".com"
+ "?subject=Response"
+ "&body=" + body
}
</script>
</head>
<body>
<div style="border:1px solid #999999; width:60%;
background-color:#F2F4FA;">
<form name="form1" action="">
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40" /><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address"
size="40" /><br/>
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100" style="font:100%
Arial;">Enter your comment in here</textarea><br />
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px;
font:12px arial;">
<input type="button" id="submit" value=" Send "
onclick="sendform()" />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
</div>
</body>
</html>