View Single Post

Old 09-10-2006, 19:01   #1 (permalink)
wurzel
Newbie
 
Join Date: Oct 2006
Posts: 10
iTrader: 0 / 0%
wurzel is an unknown quantity at this point
Default 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.
wurzel is offline   Reply With Quote