Bangladeshi Softwares
Home - Download - Codes & Tutorials - Bangla IT Bibhag - Mobile - About Me

 


Submitting form contents to an email address


Step-1:
You can post the form data to any email address if your web server does not support any server side scripting technology or if you are curious to know about it. This small code snippet can help you a little bit. It can send it's contents to an email address. You can also send it's data to more than one email address. This code snippet does not need JavaScript support either! Open your favorite text editor and type the code listed below:


<!--
 * Author: Ahsanul Haque Shovon
 * Email: ahsanul.haque.shovon@gmail.com / ahsanul_haque_shovon@yahoo.com
 * Web: http://shovon.110mb.com
-->

<form action="mailto:nobody@nowhere.onearth?subject=Email Form" 
method="post" enctype="multipart/form-data">

Name:<br />
<input type="text" size="30" name="your_name">

<br><br />

Comments:<br />
<textarea name="comments" rows="4" cols="25">
</textarea>

<br /><br />

<input type="submit" value="Email To Me">

<input type="reset" value="Clear Form">

</form>


Step-2:
The above code will send an email to the specified email address using the visitors default email client. It can generate a warning message before sending the email though. If you want to use more than one email address, separate each email address with a comma (e.g. mailto: kuddus@pure.gadha, oh@i.see, kebla@modon.tek). You can also add additional form fields. All data will be emailed as an attachment. Below you can see a preview of the above code. Do not submit the form, it does not contain a valid email address.

Name:

Comments:




Other Helpful Resources:
http://javascript.internet.com
http://www.planetsourcecode.com



 



©Ahsanul Haque Shovon
All rights reserved