Sample code that shows how to sanitize and email info using PHP and a bit of javascript