1. Home
  2. Computing & Technology
  3. PHP / MySQL

Using the MAIL function

By Angela Bradley, About.com

2 of 4

Creating the Form

<form method="post" action="contact.php">
Email: <input name="email" type="text"><br>
Message:<br>
<textarea name="message" rows="15" cols="40"></textarea><br>
<input type="submit">
</form>

The above form will collect the user's email and message, and then pass them to the page contact.php

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. PHP Email Form - Email Form Script - PHP Send E-mail

©2009 About.com, a part of The New York Times Company.

All rights reserved.