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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.