If a visitor leaves out his name in the form, I get a mail from the script
which displays: name: and then an empty field. I would like to strip the
Name: from the mail if a visitor leaves it blank. The fields are all not required and
this has to stay this way. Anyone any ideas?
Example:
<HTML>
<HEAD>
<TITLE>Contact formulier</TITLE>
<BODY>
<?php
$TextVariable = '&resultaat=';
$response = 'De data is verzonden.';
echo $TextVariable;
echo $response;
mail ("mijn@emailadres.nl", "Bericht", "
Bericht
Name:
$name
Adres:
$adres
Postcode:
$postcode
Letters:
$letters
Plaats:
$plaats
Telefoon:
$telefoon
Email-adres:
$email
Bericht:
$bericht
");
?>
</body>
</html>