Form Submit E-Mail II

[Total: 0    Average: 0/5]

This shows how to send an email on a form submit.

Body Code:

<form name="ef1">
<BR>User Name: <input name="t1" type="text" value="test">
<BR>Domain Name: <input name="t2" type="text" value="">
<input type="button" value="now" onclick="doIt()">
<script type=text/javascript>
function doIt() {
  var _n1 = "mailto:";
  var _n2 = document.ef1.t1.value;
  var _n3 = "@";
  var _n4 = document.ef1.t2.value;
  document.ef1.action = _n1+_n2+_n3+_n4;

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *