</tr>
</table>
<p><input type="button" value="Mail" name="btnMail"
onclick="mailit();"></p>
<script>
function mailit(){
var bod = "Name=" + document.forms[0].txtName.value +
"\nAddr=" + document.forms[0].txtAddr.value +
"\nNetWorth=" + document.forms[0].txtNetw.value;
alert(bod);
window.location.href="(e-mail address removed)" +
"?subject=Balancing Report" +
"?&body=" + bod;
}
</script>
Note that the statement 9 lines from the bottom, beginning "var bod",
assembles the form field values you want, plus any surrounding
chracters, into a string that becomes the body= query string value
for the mailto URL.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
.
This is excatly what I was looking for. Thank You.