Hi there,
Ok changing the button names worked fine, thanks!
I tested the auto-responder code and it doesn't seem to work yet-I signed up with my own email and never got the "thanks for joining!" auto-reply.
This is what I have on sender.php:
PHP Code:
<?php
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$address = $_POST['address'];
$city = $_POST['city'];
$province = $_POST['province'];
$postalcode = $_POST['postalcode'];
$phonehome = $_POST['phonehome'];
$phonecell = $_POST['phonecell'];
$emailaddress = $_POST['emailaddress'];
$to = "clientemail@yahoo.com";
$subject = "Sign Up Form";
$body = "First name: ".$firstname."\r\n\r\n";
$body .= "Last name: ".$lastname."\r\n\r\n";
$body .= "Address: ".$address."\r\n\r\n";
$body .= "City: ".$city."\r\n\r\n";
$body .= "Province: ".$province."\r\n\r\n";
$bidt .= "Postal Code: ".$postalcode."\r\n\r\n";
$body .= "Home Phone: ".$phonehome."\r\n\r\n";
$body .= "Home (cell): ".$phonecell."\r\n\r\n";
$body .= "Email Address: ".$emailaddress."\r\n\r\n";
$from = $emailaddress;
mail($to, $subject, $body, $from);
header("Location: http://www.mysite.ca/thankyou.htm");
exit;
$auto_subject = "Thanks for joining The Club!";
$auto_body = "Thank you for joining The Club. Stay tuned for monthly emails about our upcoming features!";
mail($emailaddress, $auto_subject, $auto_body, $to);
?>
Also, what's the easiest way to get the form boxes all lined up?
Bookmarks