the form:
CODE
<form action="email.php" method="post">
Name: <input type="text" name="name" size="60"><br><br>
E-mail Address: <input type="text" name="addy" size="60"><br><br>
Birthday: <input type="text" name="bday" size="60"><br><br>
<input type="submit" value="Sign Me Up!"></input>
</form>
Name: <input type="text" name="name" size="60"><br><br>
E-mail Address: <input type="text" name="addy" size="60"><br><br>
Birthday: <input type="text" name="bday" size="60"><br><br>
<input type="submit" value="Sign Me Up!"></input>
</form>
email.php:
CODE
<?php
$to = "email@email.com";
$subject = "FORM";
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers);
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>
$to = "email@email.com";
$subject = "FORM";
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers);
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>
right now (just in testing) when I submit it goes to a blank page...and no email
any help would be great!!