|
-
OKAY I HAVE THREE INPUT TEXT BOXES (name, email, comments), AND ONE DYNAMIC BOX (results). YOU GO TO THE WEBPAGE AND YOU CAN FILL IN THE FORM, AND HIT THE SUBMIT BUTTON, BUT IT JUST SAYS, "Sending Data..." AND DOESN'T DO ANYTHING. Here's the action on the "Submit" button:
on (release) {
// logical operator checks length. IndexOf checks for "@" and "." characters in e-mail
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
results = "Please check your e-mail address.";
} else if (!comments.length) {
results = "Please enter your comments.";
} else if (!name.length) {
results = "Please enter your name.";
} else {
loadVariablesNum ("http://icdweb.cc.purdue.edu/~robbinba/mailform.php", 0, "GET");
results = "Sending Data...";
}
}
HERE'S THE <mailform.php> script:
<?php
$TextVariable = '&results=';
$response = 'Data Sent. Thank You..';
echo $TextVariable;
echo $response;
/* recipients */
$recipient .= "<[email protected]>" ;
/* subject */
$subject = "Your Automail";
/* message */
$message .= "Name: $name
Email: $email
Comments: $comments\n";
/* additional header pieces for errors, From cc's, bcc's, etc */
$headers .= "From: $name <$email>\n";
/* and now mail it */
mail($recipient, $subject, $message, $headers);
?>
OKAY SO WHAT COULD BE THE PROBLEM? I DON'T UNDERSTAND. SOMEONE HELP PLEASE. THANKS.
-
hey change these
the mail variables and it will work
rest of the code is fine
here it is another code
$notify_email = "[email protected]";
$notify_subject = "Thank you for writing to us";
$notifyadmin_subject = "Feedback form submitted by $email someone";
$notify_user = " Thanks for the submission ";
$notify_from = "[email protected] ";
$notify_message = "There has been a feedback";
$notify_visitormessage = "Thanks for write to us. We will get back to you at the earliest. Hoping of a long term business relationship with your organisation.";
mail($notify_email, "Thanks for filling the feedback form", "Thank You, $name for contacting us. Here is the information we recieved :\n
\nName : $name
\nEmail : $email
\nComments : $comments", "From: $notify_from\nX-Mailer: PHP/" . phpversion());
mail($email, $notify_subject, $notify_visitormessage, "From: $notify_from\nX-Mailer: PHP/" . phpversion());
?>
cheers.
DBA guy who does flash
kalyan
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
|
Click Here to Expand Forum to Full Width
|