Soldato
- Joined
- 5 Aug 2003
- Posts
- 8,498
- Location
- Essex
How do I make a contact us form, where someone fills out the text box on the page and it then gets emailed to me?
function validate_form($message, $email) {
if (!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$', $email)) {
return false;
} else {
return true;
}
}
$email = stripslashes($_REQUEST['email']);
$message = stripslashes($_REQUEST['message']);