A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    102
    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 .= "<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);


    ?>

    OKAY SO WHAT COULD BE THE PROBLEM? I DON'T UNDERSTAND. SOMEONE HELP PLEASE. THANKS.

  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    4
    hey change these
    the mail variables and it will work
    rest of the code is fine
    here it is another code

    $notify_email = "kalyanjit@yahoo.com";
    $notify_subject = "Thank you for writing to us";
    $notifyadmin_subject = "Feedback form submitted by $email someone";
    $notify_user = " Thanks for the submission ";
    $notify_from = "webmaster@becons.net ";
    $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




Click Here to Expand Forum to Full Width


HTML5 Development Center