Comunidad de diseño web y desarrollo en internet online

Flash y PHP

Citar            
MensajeEscrito el 23 Sep 2009 12:30 pm
Hola...ante todo gracias por atender mi llamado de auxilio!

Aquí mi consulta:

He programado un site en Flash con diversos movie clips...finalmente he seguido todos los pasos para crear formularios (de varios ejemplos en la web) y todos funcionan si es que están en un archivo FLA solos, pero al programar los mismos dento de mi escena, que comparte clips y animaciones, no funciona. Es decir, no llama (o envía las variables de los inputs) al archivo PHP...

Por favor ayúdenme a descifrar mi incógnita...gracias!!!

---
Aquí están mis scripts por si alguien detecta algún error...:

FLA:

stop();
// Making the default setting for below mentioned textfields
name = "";
email = "";
suggestion = "";
//
//-------------------------------------------------------
// Submit Button action
submit.onRelease = function() {
//Add Path of the php file
feedbackpath = "contacto.php";
//
str1 = email.indexOf("@");
str2 = email.indexOf("@")+1;
str3 = email.charAt(str1+1);
str4 = email.lastIndexOf(".");
str5 = email.charAt(str4+1);
len = length(email);
counter = 1;
flag = 0;
while (Number(counter)<=Number(len)) {
Char = substring(email, counter, 1);
if (Char ne "@") {
flag = Number(flag)+1;
}
counter = Number(counter)+1;
}
//
//Name field validation
if (name == "") {
condition1 = "";
namemark._visible = true;
} else {
condition1 = "ok";
namemark._visible = false;
}
//E-Mail Address validation
if (str4<=str2 || str3 == "." || str5 == "" || Number(flag) != Number(len-1)) {
condition2 = "";
emailmark._visible = true;
} else {
condition2 = "ok";
emailmark._visible = false;
}
//Suggestion field validation
if (suggestion == "") {
condition3 = "";
suggestionmark._visible = true;
} else {
condition3 = "ok";
suggestionmark._visible = false;
}
//Sending data to php file only if all the above validations are fulfilled
if (condition1 == "ok" && condition2 == "ok" && condition3 == "ok") {
loadVariablesNum(feedbackpath+"?name="+name+"&email="+email+"&feedback="+suggestion, 0);
gotoAndStop(2);
}
};
//
//-------------------------------------------------------
// Reset Button action
reset.onRelease = function() {
// Making the default setting for below mentioned textfields
name = "";
email = "";
suggestion = "";
// Making '*' Marks Invisible
namemark._visible = false;
emailmark._visible = false;
suggestionmark._visible = false;
};



PHP:

<?
//Destination Email ID
$to = "[email protected]";

//Name of the Person
$namenew = $_GET['name'];

//Email Id of the person
$emailnew = $_GET['email'];

//Feedback detail
$feedbacknew = $_GET['feedback'];

//Subject line of the email
$subject = "Contacto Web"." "."$emailnew";

/*********** Email body *******************/
$matter = "Asunto:"." "."$namenew"."\n\n".
"Nombre:"." "."$namenew"."\n\n".
"E-mail:"." "."$emailnew"."\n\n".
"Mensaje:"." "."$feedbacknew"."\n\n";
/**********************************************/


mail("$to", "$subject","$matter","From: $emailnew");

?>

Por farfallaprod

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 23 Sep 2009 01:42 pm

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.