A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: php form won't send

Threaded View

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    16

    php form won't send

    Hi. I have problems with a php script for a form; here is the code

    Code:
    <?
    
    /*    ****************************************************************************
          *** $msg se rapporte aux variables placées dans le corps du message      ***
          ****************************************************************************
    */
    
    $msg = "E-mail from site XXX \n\n";
    
    /*    ********************************************************************************************
          ***  La chaîne Nom Expediteur est écrite dans le corps du message suivi de la variable $nom_expediteur. Idem pour les autres valeurs. ***
          ******************************************************************************************** 
    */
    
    $msg .= "From sender:    $nom_expediteur\n";
    $msg .= "E-mail:  $email_expediteur\n";
    $msg .= "Subject:    $sujet\n\n";
    $msg .= "Message:      $message\n\n";
    
    /*    *************************************************************  
          ***  \n retourne * la ligne - \n\n saute une ligne ***  
          *************************************************************
    */
    
    /*    ****************************************************
          ***  N'oubliez pas de mettre votre adresse email ***
          ****************************************************
    */
    
    $to = "[email protected]";
    $subject = "$sujet";
    
    /*    *****************************************************************
          ***  Ecrit "E-mail depuis mon site" dans le champs "from"***
          *****************************************************************
    */
    
    $mailheaders = "E-mail from site XXX \n";
    
    /*    *****************************************************************
          ***  Ecrit l'e-mail de l'expéditeurdans le champs "Reply-To"  *** 
          *****************************************************************
    */
    $mailheaders .= "Reply-To: $email_expediteur\n\n";
    
    /*    ******************************************
          ***  Fonction Mail - exécute le script ***
          ******************************************
    */
    
    mail($to, $subject, $msg, $mailheaders);
    
    
    ?>
    And here there's the fla attached. It is a fault of the fla, or of the script?

    Thanks.
    Attached Files Attached Files

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