<?php
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];
$zipcode = $_POST['zipcode'];
$questions = $_POST['questions'];
$message_body =
"\n" .
"\n" .
"Name: " . $name . "\n" .
"\n" .
"Phone: " . $phone . "\n" .
"\n" .
"Email: " . $email . "\n" .
"\n" .
"Address: " . $address . "\n" .
" " . $city . ", " . $state . " " . $zipcode . "\n" .
"Questions: " . $questions;
$subject = "INQUIRY FROM CELEBRATIONS SITE";
if ($name AND $email) {
mail ("info@dvdgraduationinvitations.com", $subject, $message_body, "From: $email");
header ("Location: http://www.dvdgraduationinvitations.com/processContactg2.php");
} else {
print ("<p>Please enter all required information</p>
<p>Use the back button on your browser to return to the form</p>
\n");
}
?>
<form method="post" action="http://www.dvdgraduationinvitations.com/processContactg2.php" >
<p><b>Name:</b> <Input type="text" name="name" id="name" size="25" /></p>
<p><input type=Submit value="Submit Your Request" onclick="processContactg2.php"></p>
Quote
TammyK wrote:
BTW, you REALLY need to check your variables. $email needs to be a valid email and only a valid email.
Quote
googlebot wrote:Quote
TammyK wrote:
BTW, you REALLY need to check your variables. $email needs to be a valid email and only a valid email.
http://www.google.com/search?hl=en&am...gle+Search
Oh, and the first result is interesting. I just skimmed the code, but maybe you guys should look into that for v7's release: http://www.phpit.net/code/valid-email/
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions