OK, stuck with mail forms again. This time, it should work. I debugged the code and no syntax errors were found. Here's the code:
But here's the error message that I get:
Try it for yourself, go to www.wensleydale-galleries.co.uk. It's the Quick Contact, right hand side, near the bottom.
Thanks in advance for any help I may/will receive, will7.
PHP:
<?php
$to="[email protected]";
$subj="E-Mail From: ".$_POST['name']." \r \n at: ".$_POST['email'];
$msg="Name: ".$_POST['name']." \r \n E-Mail Address: ".$_POST['email']." \r \n Type of Query: ".$_POST['toq']." \r \n Message: ".$_POST['message'];
$header="From ".$_POST['name'];
if (mail($to, $subj, $msg, $header))
{
header ("Location: quickcontact_thanks.htm");
} else {
header ("Location: quickcontact_notsent.htm");
}
?>
But here's the error message that I get:
Notice: Undefined index: name in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 4
Notice: Undefined index: email in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 4
Notice: Undefined index: name in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 5
Notice: Undefined index: email in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 5
Notice: Undefined index: toq in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 5
Notice: Undefined index: message in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 5
Notice: Undefined index: name in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php:4) in D:\Domains\wensleydale-galleries.co.uk\wwwroot\quickcontact.php on line 10
Try it for yourself, go to www.wensleydale-galleries.co.uk. It's the Quick Contact, right hand side, near the bottom.
Thanks in advance for any help I may/will receive, will7.
















