O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending Form Data via Email

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

Image Here is a script used to send form data via email. You can find a commented version of this script on the book’s Web site.

...<body><?php//This is a very simple PHP script that ...if (empty($_POST)) {     print "<p>No data was submitted.</p>";     print "</body></html>";     exit();}function clear_user_input($value) {      ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required