Sending Form Data via Email

If you don’t feel like messing with CGI scripts and can deal with not having your data perfectly formatted (or pre-processed by a script), you can have a visitor’s data be sent to you via email.

Figure 17.6. Here is a script used to send form data via email. You can find a commented version of this script on my Web site.

To send form data via email:

Type <form method="post".
Type action=“emailform.php”, where emailform.php is the script that will send the form data to your email.
Type >.
Create the form’s contents, as described on pages 262280.
Type </form>.

✓ Tips

  • You might ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.