Thomas said:
Not when using the FP Form Handler. Require a custom written
server-side script based on whatever language is supported by your
web host.
Thomas,
Is it actually necessary to use a server-side script ?
Wouldn't something like this work?
I know it needs the user to have an email client installed, but how many people wouldn't ?
JS code
function testform()
{
/* code to validate the form */
}
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
body += elements[j].name
body += elements[j].value
+ '%0d%0a' // line break after each line
j += 1
} // end while
}
window.location = "mailto:" + "mysite" + "@" + "mydomain" + ".com"
+ "," + "anothersite" + "@" + "anotherdomain" + ".com"
// add more addresses separated by commas
+ "?subject=Title"
+ "&body=" + body
}
HTML code
<form name="form1" action="">
<div style="background-color:#DBE0F5; padding:3px; font:75% arial;">
<b>Title</b>
</div>
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Hi all,<br />
Introductory text
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40"
onfocus="if (this.value=='Insert name'){this.value='';};return false;"
onblur="if (this.value==''){this.value='Insert name';return false;}"/><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address" size="40"
onfocus="if (this.value=='Insert e-mail address'){this.value='';};return false;"
onblur="if (this.value==''){this.value='Insert e-mail address';return false;}"/><br/>
<!-- other fields -->
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100"
style="font:100% Arial;">Enter your comment in here</textarea><br />
</p>
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px; font:12px arial;">
<input type="button" id="submit" value=" Send " onmouseover="testform()" onclick="sendform()"
/>
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>