Gents
Thanks for your help
I have tried the code you noted but are getting a parse error
"Parse error: syntax error, unexpected $end in C:\wamp\www\PetalsandPatches\cataloguetest-3.php on line 34"
Line 34 is outside the code.
I reckon the problem is the if loop but after reading the doco I am no wiser. Unless I can make use of the \r\n?
PHP Code:
<?
...
if ($name != "" AND $address != "" AND $city != "" AND $state != "" AND $postcode != "")
{
$sendto = "tlknell@somewhere.com.au";
$subject = "Petals & Patches catalogue request";
$message = <<<TEXT
I would a copy of the Petals & Patches catalogue send to me please -
Media: $media
Name: $name
Address: $address
City/Town: $city
State: $state
Post code: $postcode
Country: $country
E-mail: $email";
TEXT;
// sending e-mail
mail("$sendto", "$subject", "$message");
//echo "Your message was sent";
header('Location: thankyou.htm');
exit();
}
?>
Any advice?
Bookmarks