Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/06/2011, 23:27
ningunoi
 
Fecha de Ingreso: enero-2010
Mensajes: 24
Antigüedad: 14 años, 4 meses
Puntos: 0
formulario de contactos flash y php (plase)

hola chicos como estan quisiera a alguien que me pueda orientarme, estoy al frente de un formulario de contactos en flash y un archivo php pero cuando intento mandar un mensaje y voi al correo no me llega nada les podre los dos codigos haver si me dicen q estoy asiendo mal

gracias de ante mano

Este es el codigo PHP
Código PHP:
<?php
//Type the receiever's e-mail address
$emailAddress "[email protected]";
//Type your Site Name
$siteName "LyR Studios";

$contact_name $_POST['name'];
$contact_email $_POST['email'];
$contact_subject $_POST['subject'];
$contact_message $_POST['message'];

if( 
$contact_name == true ) {
    
$sender $contact_email;
    
$receiver $emailAddress;
    
$client_ip $_SERVER['REMOTE_ADDR'];

    
$email_body "The Name Of The Sender: $contact_name \nEmail: $sender \n\nSubject: $contact_subject
\n\nMessage: \n\n$contact_message \n\nIP ADDRESS: $client_ip \n\n$siteName"
;

    
$emailAutoReply "Hi $contact_name, \n\nWe have just received your E-Mail. We will get
in touch in a few days. Thank you!  \n\n$siteName "
;

    
$extra "From: $sender\r\n" "Reply-To: $sender \r\n" "X-Mailer: PHP/" phpversion();
    
$autoReply "From: $receiver\r\n" "Reply-To: $receiver \r\n" "X-Mailer: PHP/" phpversion();

    
mail$sender"Auto Reply: $contact_subject"$emailAutoReply$autoReply );

    if( 
mail$receiver"New E-Mail - $contact_subject"$email_body$extra ) ) {
        echo 
"success=yes";
    } else {
        echo 
"success=no";
    }
}
?>




Este es el Codigo del flash as 2.0

Código actionscript:
Ver original
  1. function clearField()
  2. {
  3.     txtField1.text = label1;
  4.     txtField2.text = label2;
  5.     txtField3.text = label3;
  6.     txtField4.text = label4;
  7. } // End of the function
  8. label1 = "Your Name:";
  9. label2 = "Telephone:";
  10. label3 = "E-mail Address:";
  11. label4 = "Message:";
  12. countField = 4;
  13. clearField();
  14. var arrayLabel = new Array();
  15. for (i = 1; i < countField + 1; i++)
  16. {
  17.     txtField = this["txtField" + i];
  18.     txtField.index = i;
  19.     arrayLabel[i] = this["label" + i];
  20.     txtField.tabIndex = i;
  21.     txtField.onSetFocus = function ()
  22.     {
  23.         if (this.text == arrayLabel[this.index])
  24.         {
  25.             this.text = "";
  26.         } // end if
  27.     };
  28.     txtField.onKillFocus = function ()
  29.     {
  30.         if (this.text == "")
  31.         {
  32.             this.text = arrayLabel[this.index];
  33.         } // end if
  34.     };
  35. } // end of for
  36. btnClear.onRollOver = function ()
  37. {
  38.     this.gotoAndPlay("over");
  39. };
  40. btnClear.onRollOut = btnClear.onReleaseOutside = function ()
  41. {
  42.     this.gotoAndPlay("out");
  43. };
  44. btnClear.onRelease = function ()
  45. {
  46.     clearField();
  47. };
  48. btnSubmit.onRollOver = function ()
  49. {
  50.     this.gotoAndPlay("over");
  51. };
  52. btnSubmit.onRollOut = btnSubmit.onReleaseOutside = function ()
  53. {
  54.     this.gotoAndPlay("out");
  55. };
  56. btnSubmit.onRelease = function ()
  57. {
  58.     if (_root.page4.contactform.txtField1.text == label1 || _root.page4.contactform.txtField2.text == label2 || _root.page4.contactform.txtField3.text == label3 || _root.page4.contactform.txtField4.text == label4)
  59.     {
  60.         gotoAndStop(3);
  61.     }
  62.     else
  63.     {
  64.         _root.page4.contactform.loadVariables("email.php", "POST");
  65.         gotoAndStop(2);
  66.     } // end else if
  67. };
  68. stop ();

Última edición por ningunoi; 03/06/2011 a las 07:50