dcsimg
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Can Someone Plz Help Me?

  1. #1
    Member
    Join Date
    May 2001
    Location
    USA
    Posts
    53

    I STILL NEED HELP WITH UPDATED CODE

    HERE IS THE UPDATED PHP CODE BUT IT STILL WILL NOT WORK:

    (FK will not let me put the opening tag here)

    $FirstName = $_POST['FirstName'];

    $Email = $_POST['Email'];

    $ToComments = $_POST['ToComments'];

    $ToEmail = "you@yourdomain.com";

    $ToSubject = "Flash Contact Form";

    $EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n";

    mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");

    ?>


    I used to have this form and script running where I am hosted:

    http://www.flashkit.com/movies/Inter...7701/index.php

    My hosting service updated to PHP 4.3.1 and the PHP script will not work anymore. Can anyone help me update the PHP code to work with PHP 4.3.1?

    Here is the PHP code:

    $ToEmail = "you@yourdomain.com";

    $ToSubject = "Contact Form";

    $EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n";

    mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");


    I am not sure if the ActionScript needs to be updated as well but here it is anyway:

    on (release) {

    if (!FirstName.length) {
    EmailStatus = "Please enter your name.";
    }

    else if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
    EmailStatus = "Please enter a valid email";
    }

    else if (!ToComments.length) {
    EmailStatus = "Please enter your message";
    }

    else {
    loadVariablesNum ("MailPHP.php", "0", "Post");
    gotoAndPlay(10);
    }
    }
    Last edited by blazin1or2; 04-14-2003 at 02:28 PM.
    Blazin1

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