After
if (isset($_POST['comments']) &&
!empty($_POST['comments'])) {
$message=strip_tags($_POST['comments']);
}
else {
$nomessage = 'You have not entered any comments';
}
And using the same syntax as above add:
if (isset($_POST['name']) && !empty($_POST['name']))
{
$message .= "\n";
$message .= "Name: " . strip_tags($_POST['name']);
}
if (isset($_POST['telephone']) &&
!empty($_POST['telephone'])) {
$message .= "\n";
$message .= "Telephone: " . strip_tags($_POST['telephone']);
}
\n is the newline character for emails
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete
Login system.