Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

Ancient Future Designs
Ancient Future Designs
Email Form & Pop Up Message Window
Try the form below, sending me an email. Watch the window that comes up once you have sent it!
Mailto Form
To:

Subject:

Body Message

This is the script to place inside the <HEAD> of your page...
<SCRIPT>
function runMail (form,button) {
var SendTo= 'mailto:' +(form.ToWho.value);
form.action = SendTo;
form.submit()
sendWin= open ('','anonwin','width=200,height=200,status=yes,toolbar=no,menubar=no,history=no');
 sendWin.document.write ('<BODY BGCOLOR="#000000" TEXT="#FFFFFF" VLINK="#008000" ALINK="#000080">')
 sendWin.document.write ('</BODY>')
 sendWin.document.write('<CENTER>');
 sendWin.document.write('Thankyou for your comments. <BR>');
sendWin.document.write('</CENTER>')
return;
}
</SCRIPT>

This goes into the <BODY> of your page...

<H3>Mailto Form</H3>

<FONT FACE="Arial" SIZE="1">
<FORM NAME="anymail"  METHOD="POST" ENCTYPE="text/plain">
<P>
To: <BR>
<INPUT TYPE="TEXT" NAME="ToWho" SIZE=30 VALUE="ancient@bri.net.au"> <BR>
<P>Subject: <BR>
<INPUT TYPE="TEXT" NAME="subj" SIZE=40 VALUE="Re:Ancient Future Designs"> <BR>
<P>Body Message <BR>
<TEXTAREA ROWS=10 COLS=50 NAME="message" VALUE="">
</TEXTAREA><BR>
<P>
<INPUT TYPE="Submit" VALUE="Do it!" onClick="runMail(this.form, this)">
</FORM>
<!-- END OF SCRIPT --> 

What you need to edit is the email address you see above and the name of the page. (where it says "Re:Ancient Future Designs")
That's it.