Welcome To COMPEWT Bringing you video tutorials and free resources for your "compewting" endeavours. Check Out the latest Flash Tutorial.

17 February 2010

Flash Contact Form








The codes :D


------SEND BUTTON----------


on (release) {
         if (name eq "" or subject eq "" or message eq "" or email eq "") {
               stop();
         } else {
         loadVariablesNum("form.php", 0, "POST");
         gotoAndStop(2);
     }
}



--------------------------



-------CLEAR BUTTON-------------


on (release) {
    name = "";
    subject="";
    message="";
    email="";
}



---------------------------------


---------------FORM.PHP------------

$to = "your_email@email.com";
   $msg = "$name\n\n";
   $msg .= "$message\n\n";
  mail($to, $subject, $msg, "Message From: Online client\nReply-To: $email\n");
?>


--------------------------------