Improving the Simple Contact Form
A few weeks back, we learned how to build a simple
contact form to allow our users to send us feedback directly from a
site.
As noted in the comments, there were a few shortcomings with the contact
form. Most notably, there was no spam protection whatsoever. Additionally,
if the user made a mistake, their message would be lost, which is
extremely inconvenient.
To make this contact form ready to use on a real website, we'll be adding
both a basic spam protection system and the ability to store the message
in a session in case the user makes a mistake.
NOTE: Like all projects built on this blog, this is being
presented as a teaching exercise and a demonstration, so be sure to
double-check it before...
read more
- «
-
- 1
-
- »