PHP help for an amateur Hi,
I am new on here and having trouble developing a php script for a web to email form. When I submit the form, the browser brings up a dialog box asking whether to open or save the 'sendmail.php'
This is the problematic script:
<?php
$email = $_REQUEST['email'] ;
$yourmessage = $_REQUEST['yourmessage'] ;
$name = $_REQUEST['name'] ;
$address = $_REQUEST['address'] ;
$postcode = $_REQUEST['postcode'] ;
$phoneno = $_REQUEST['phoneno'] ;
$preferred_means_of_contact = $_REQUEST['preferred_means_of_contact'] ;
mail( "myemail@mydomain.com", "Feedback Form Results",
"$yourmessage", "From: $email", "$embody = $name $address $postcode $phoneno $preferred_means_of_contact" ) ;
header( "Location: http://www.mydomain.co.uk/contact_thanks.html" ) ;
?>
Any help would be greatly appreciated. |