Expression Web
The basics and beyond

Exercise Code

The code used in this book is available for the following chapters:

All files Zip

 

Chapter 10

Forms, sooner or later most websites need at least a basic contact form. Put your email address out on the net and it will quickly become a magnet for spam.

In this chapter we create a simple basic contact form and learn to email the results to the email address of your choice without ever exposing that address to spam harvesters.

Note: if you use a common website email address like sales@ or info@ you will still get spam on those address. The same goes for abuse@ and webmaster@.

Exercises

Files are the raw code used in the exercises while Examples are the completed file. (Note some browser may display the text files as if they were html. If that happens to you, use "view source" in your browser to copy the text or in Internet Explorer right click and use "save target as".)

Files Examples
form.css Form 1 - html form
sendmail-asp.txt  
sendmail-php.txt  
form1-aspx.txt ASP.NET form - download the text version and save as form1.aspx to get the server side code

Chapter 10 zip file