Site hosted by Angelfire.com: Build your free website today!
 

mailto

to create an email link the mailto: attribute of the <a> tag is used
<a href="mailto:someone@$nailmail.com">email</a>
a subject can also be included using the ?subject attribute
<a href="mailto:someone@$nailmail.com?subject=free chocolate">email</a>

Click this link to learn more about mailto

simple mailto form

Add this simple mailto form to your webpage and allow user's to send their comments, just cut and paste the example html code below into your html document

freeware code is available here for a more complex form

: name
: email
comments

here's the code

cut and paste this mailto form code to your own webpage please remember to change the email address to your own as well as the URL in the hidden input
<CENTER>
<FORM METHOD=POST ACTION="mailto:someone@$nailmail.com" ENCTYPE="text/plain">
<INPUT TYPE="text" NAME="username"> : name <BR>
<INPUT TYPE="text" NAME="email"> : email <BR>
comments <BR>
<TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard">
</TEXTAREA>
<INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">
<INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="index.html">
<BR>
<INPUT TYPE="submit" VALUE="Send">
<INPUT TYPE="reset" VALUE="Clear">
</FORM>
</CENTER>
<!-- END OF FORM -->


« back to forms tutorial


home
html tutorial css tutorial javascript webmaster articles link exchange

html tutorial

make money
from your website