-
Form Action
Ok, when I e-mail a form from my site, it comes to my e-mail in-box... BUT it has no writing... how come?!
Here are the files...
Feedback.html
www.crosspoint.org/Feedback.html
Feedback.php
www.crosspoint.org/feedback.php
Registration.htm
www.crosspoint.org/registration.htm
Registration.php
www.crosspoint.org/registration.php
Please help me!
WARNING: non-exposure to the Son can cause burning!
-
I tried filling out the feedback form, and from what I could see, it worked fine. Did you get it and was the text filled out?
-
No, it was just a blank e-mail...
But when [J]ona gave me his script it worked just fine... whats up?
WARNING: non-exposure to the Son can cause burning!
-
Post the PHP code you are using. The code that I linked to ( http://forums.webdeveloper.com/showt...9543#post48748 ) works fine...
-
This is for the Feedback, not the Registration... registration.php is almost the same thing
<?PHP
$subject = "Feedback";
$headers = "From: Form Mailer";
$forward = 1;
$location = "feedbackthankyou.html";
$addresses = array("webmaster@crosspoint.org","dvaughan@crosspoint.org","lhale@crosspoint.org");
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "This form was submitted on $date at $time.\n\n";
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
foreach ($addresses as $email) {
mail($email, $subject, $message, $headers);
}
if ($forward == 1) {
header ("Location:$location");
}
else {
echo ("Thank you for submitting our form.");
}
?>
WARNING: non-exposure to the Son can cause burning!
-
This line:
mail($email, $subject, $message, $headers);
should be:
mail($email, $subject, $msg, $headers);
-
THANK YOU PYRO!
it works now
WARNING: non-exposure to the Son can cause burning!
-
You're welcome...
-
wait, the registration does the same thing... hold on, I will post the script
<?PHP
$subject = "Registration";
$headers = "From: Form Mailer";
$forward = 1;
$location = "feedbackthankyou.html";
$addresses = array("webmaster@crosspoint.org","dvaughan@crosspoint.org","lhale@crosspoint.org");
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "This form was submitted on $date at $time.\n\n";
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
foreach ($addresses as $email) {
mail($email, $subject, $msg, $headers);
}
if ($forward == 1) {
header ("Location:$location");
}
else {
echo ("Thank you for submitting our form.");
}
?>
WARNING: non-exposure to the Son can cause burning!
-
there ya go.. i have edited my post
WARNING: non-exposure to the Son can cause burning!
-
I would use the same script for both... No need to have separate form hanlers, really...
-
WARNING: non-exposure to the Son can cause burning!
-
WARNING: non-exposure to the Son can cause burning!
-
You bet....
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks