Hi Troy,
I've added in the code but it doesn't seem to make much of a difference, the word NULL doesn't show up on the email, here's where I put the code:
<?
if ((!$CAE_number ) or (!$first_name) && (!$tomail)) {
echo "You must enter your email address, your name and CAE number!";
echo "<p>";
echo "Please use the 'Back' button to continue.";
echo "</p>";
}
else
{
$message="First Name\tSurname\t\tCAE Number\tEmail\t\t\tSubmission Date\tAdditional Information\n$first_name\t\t"."$surname\t\t"."$CAE_number\t"."$tomail\t"."$submissiondate\t"."$additional_info\n\n".
"Artist Name\tBand Members\n$artist_name\t"."$band_members\n".
"Venue Name\t\tVenue Date
$venue_name1\t\t"."$venue_date1\n".
"$venue_name20\t\t".
"$venue_date20\n";
mail("jean@ietmireland.com",$subject,$message,"From: info@imro.ie");
mail("$tomail","$subject","$message","From: info@imro.ie");
echo "<p>Thank you $first_name for submitting details of your Domestic Live Performance Listing. We will process this infomration shortly.</p>";
echo "<p>We have also sent a copy of this list to $tomail the email address you submitted</P>";
}
while (list($var, $value) = each($HTTP_POST_VARS)) {
if (!$value) {
$$var = "NULL";
}
}
?>
Have I put it in the wrong place?
Gurl
ps. do you live in the US?