Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

Video Corsi Actionscript 3.0


+ Reply to Thread
Results 1 to 2 of 2

Thread: Flash CS3 email form AS2

  1. #1
    Junior Member Settled In seokutsa is on a distinguished road
    Join Date
    Feb 2008
    Posts
    1
    Rep Power
    0

    Smile Flash CS3 email form AS2

    amazing Flash templates
    Hello,
    I set up an email form movie clip in my Flash website. I put needed actionscripts using 2.0. I uploaded a php file (mailto.php). I do not see it working on the site.

    My questions are:
    1. Should the email form be set as a separate flash file to make it work?
    2. Is it OK to create the form as a movie clip in a composite flash file?
    3. Should the server be set up to accept a php file in order to make the email form work?
    Thank you and look forward to hearing from any one.

  2. #2
    Moderator Moving My Stuff To The FlepStudio tem is on a distinguished road tem's Avatar
    Join Date
    Jan 1970
    Posts
    638
    Rep Power
    41

    Re: Flash CS3 email form AS2

    Hi!
    I've noticed a similar problem while working in a clip in as2
    you should try to write the code that talks to the php in the main timeline..

    Code:
    mailform = "form.php";
    confirm = "please wait for confirmation ..."
    action = "send";
    loadVariablesNum (mailform, 0, "POST");
    gotoAndPlay ("wait");
    wait frame:
    Code:
    loadVariablesNum(mailform, 0);
    answer = confirm;
    then after wait create a frame called loop:
    Code:
    if (answer != confirm) {
        gotoAndStop ("done");
    }
    and a frame that "loops" with it
    Code:
    gotoAndPlay("loop");
    after this a frame called done where you can place a dynamic textfield tracing the variable answer.

    here you got the php file:
    Code:
    
    /******************************************************
    
    **
    
    **   tConcept Php Mailer 0.9   
    
    **
    
    **    Based on BigJolt Php mailer 2.0
    
    **    07/26/2007
    
    **    Special Thanks to Onsitus and the Masterdrive comunity
    
    **   
    
    *******************************************************/
    
    
    
    /******************************************************* 
    
    
    
    site details below!
    
    
    
    *******************************************************/
    
    
    
    // Enter your contact email address: administrator address 
    
    $adminaddress = "info@mysite.com"; 
    
    
    
    // Enter the address of your website here include http://www. 
    
    $siteaddress ="http://www.mycoolsite.com"; 
    
    
    
    // Enter your site name  
    
    $sitename = "My Cool Site"; 
    
    
    
    /*******************************************************
    
    
    
    Don't change anything below...
    
    
    
    *******************************************************/
    
    
    
    // Gets the date and time from your server
    
    $date = date("m/d/Y H:i:s");
    
    
    
    // Gets the IP Address
    
    if ($REMOTE_ADDR == "") $ip = "no ip";
    
    else $ip = getHostByAddr($REMOTE_ADDR);
    
    
    
    //Process the form data!
    
    // and send the information collected in the Flash form to Your nominated email address
    
    if ($action != ""): 
    
    mail("$adminaddress","Info request",
    
    "A visitor at $sitename has left the following information\n
    
    Nome: $fname
    
    Cognome: $lname
    
    Indirizzo: $indir 
    
    Email: $email
    
    Telefono: $telno
    
    
    The visitor commented:
    
    ------------------------------
    
    $comments
    
    
    
    Logged Info :
    
    ------------------------------
    
    Using: $HTTP_USER_AGENT
    
    Hostname: $ip
    
    IP address: $REMOTE_ADDR
    
    Date/Time:  $date","FROM:$adminaddress"); 
    
    
    
    //This sends a confirmation to your visitor
    
    mail("$email","$sitename", 
    
    "Grazie per essersi iscritto a $sitename!\n
    
    La terremo aggiornata sulle prossime iniziative.
    
    Distinti saluti,
    
    $sitename
    
    $siteaddress","FROM:$adminaddress"); 
    
    
    
    //Confirmation is sent back to the Flash form that the process is complete
    
    $sendresult = "Iscrizione avvenuta con successo. Grazie! ";
    
    $send_answer = "answer=";
    
    $send_answer .= rawurlencode($sendresult);
    
    echo "$send_answer";
    
    
    
    endif;

+ Reply to Thread

Similar Threads

  1. Email form con Flash CS3 e PHP
    By Flep in forum Utilità di FlepStudio
    Replies: 176
    Last Post: 4 Weeks Ago, 12:45
  2. Email form with pictures - Flash CS3 and PHP
    By Flep in forum FlepStudio utilities
    Replies: 124
    Last Post: 29-01-10, 10:19
  3. Re: Email form with pictures - Flash CS3 and PHP
    By flashtec in forum Off Topics
    Replies: 0
    Last Post: 24-11-08, 23:33
  4. Email form Flash CS3 e ColdFusion 8
    By Flep in forum Utilità di FlepStudio
    Replies: 3
    Last Post: 24-10-08, 09:20
  5. Classic Email form Flash CS3 and PHP
    By ions in forum Flash English
    Replies: 0
    Last Post: 27-06-08, 17:07

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Optimization by vBSEO