Form Gathers and Sends Email

[Total: 0    Average: 0/5]

This will allow one to create an email on an HTML page.

Head Code:

<script language="JavaScript">
function dothis(_f)
  var _e=_f.ename.value;
  var _s=_f.subj.value?"?subject="+_f.subj.value:"";
  var _b=_f.bod.value?"body="+_f.bod.value:"";
  if(_s&&_b) _b="&"+_b; else if(_b)_b="?"+_b;
  return _e?true:false;


Body Code:

Email to:  <input type="text" name="ename" size="20"><BR>
Subject: <input type="text" name="subj" size="20" value="Test Email Subject"><BR>
Content: <input type="text" name="bod" size="20" value="Body Text"><BR>
<input type="button" value="Submit it" onclick="dothis(this.form)">
<input type="reset" value="Reset">

Times Viewed: 9

Leave a Reply

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