I am new the the mail() function,
Can somebody explain why this code does not work, and how ti can be corrected?
- Code: Select all
<?php
if(!empty($_POST['name']) || (!empty($_POST['email']) || (!empty($_POST['websitename']) || (!empty($_POST['category']) || (!empty($_POST['colourscheme']) || (!empty($_POST['domain']) || (!empty($_POST['logo']) || (!empty($_POST['navi']) (!empty($_POST['add']))
{
mail('jack@doobdee.net', stripslashes($_POST['subject']), stripslashes($_POST['name']), stripslashes($_POST['email']), stripslashes($_POST['websitename']), stripslashes($_POST['category']), stripslashes($_POST['colourscheme']), stripslashes($_POST['domain']), stripslashes($_POST['logo']), stripslashes($_POST['navi']), stripslashes($_POST['add']), 'From: ' . stripslashes($_POST['email']) . ' <' . stripslashes($_POST['name']) . '>'); //Change Email Adress
}
?>
Kind regards,
DooBDee
PS : Also how do you put a line between each $_POST?




