-
Okay guys, here's what's going on.
First, go check out my website <http://www.brentrobbins.com>. On the "contact" page I have my mailform. It does not work, it just sits there and says, "Sending Data...."
HERE'S THE SCRIPT FOR THE PHP FILE (pasted directly):
<?php
$TextVariable = '&results=';
$response = 'Data Sent. Thank You..';
echo $TextVariable;
echo $response;
/* recipients */
$recipient .= "<brent@brentrobbins.com>" ;
/* 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);
?>
AND HERE'S THE SCRIPT I HAVE FOR MY '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://www.brentrobbins.com/mailform.php", 0, "GET");
results = "Sending Data...";
}
}
I HAVE THREE INPUT TEXT FIELDS CALLED, "name," "email," and "comments," and one dynamic text called, "results."
OKAY SO WHAT AM I DOING WRONG?
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
|