Foros del Web » Creando para Internet » Flash y Actionscript »

no funciona mi formulario

Estas en el tema de no funciona mi formulario en el foro de Flash y Actionscript en Foros del Web. Hola chavos, tengo un problemilla y es que no me llega nada a mi correo de email, esta hecho en flash y php, alguien me ...
  #1 (permalink)  
Antiguo 13/01/2011, 16:26
 
Fecha de Ingreso: agosto-2010
Mensajes: 27
Antigüedad: 13 años, 8 meses
Puntos: 0
Pregunta no funciona mi formulario

Hola chavos, tengo un problemilla y es que no me llega nada a mi correo de email, esta hecho en flash y php, alguien me podria ayudar.......
  #2 (permalink)  
Antiguo 13/01/2011, 17:31
Avatar de Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 10 meses
Puntos: 406
Respuesta: no funciona mi formulario

Hola Chininino
Puede ser tantas cosas:
1.- Que lo estás probando en local.
2.- Que los código están mal escritos.
3.- Si está en el servidor éste no da soporte al PHP.
4.- Que el servidor no tenga habilitado el envío de correos.
Aquí tienes varios videos tutoriales: http://www.google.com/#q=formularios...247f89db471ef3

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/
  #3 (permalink)  
Antiguo 13/01/2011, 18:01
 
Fecha de Ingreso: agosto-2010
Mensajes: 27
Antigüedad: 13 años, 8 meses
Puntos: 0
Pregunta Respuesta: no funciona mi formulario

PUES MIRA , NO LO ESTOY PROBANDO LOCAL, TENGO UN SERVIDOR SE LLAMA IPGE.COM SI SOPORTA PHP Y DE HECHO YA ME CONTACTE CON MI SERVIDOR Y SI SOPORTA ENVIO DE CORREOS CON PHP.. NO CREO QUE ESTE MAL EL CODIGO, PORQUE DE HECHO ESTE ES DE UNA MONSTER TEMPLATE,

QUIZAS LA COMUNICACION DEL ACTIONSCRIPT CON EL PHP NO ANDA MUY BIEN O NO SE, LA VERDAD SOY MEDIO NOVATON, AUNQUE ME ESTOY EMPAPANDO UN POQUITO SOBRE EL TEMA PORQUE YA TENGO MUCHO TIEMPO TRATANDO DE HACER QUE FUNCIONE.. LOS CODIGOS SON LOS SIGUIENTES PARA QUE LES HECHES UNA MIRADILLA...

ESTE ES EL PHP
<?php
//Type the receiever's e-mail address
$emailAddress = "[email protected]";
//Type your Site Name
$siteName = "Magic";

$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";
}
}
?>
<html>
<title>info_form</title>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>



Y ESTE ES EL SCRIPT

onClipEvent (load)
{
this.t.v = _root.contacts_txt9;
}
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
_parent.loadVariables("mail.php", "POST");
_parent._parent.gotoAndStop(2);
}
ESPERO TU ME PUEDAS HECHAR LA MANO A RESOLVER MI PROBLEMILLA
  #4 (permalink)  
Antiguo 14/01/2011, 23:07
Avatar de mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 8 meses
Puntos: 214
Respuesta: no funciona mi formulario

<saludos>
y probando el php por aparte funciona?
o si haces otro php que solo ejecute la
función mail te llega el correo?
el servidor donde se esta corriendo
la aplicación tiene habilitada la función mail?
</saludos>
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com
  #5 (permalink)  
Antiguo 15/01/2011, 12:27
 
Fecha de Ingreso: agosto-2010
Mensajes: 27
Antigüedad: 13 años, 8 meses
Puntos: 0
Pregunta Respuesta: no funciona mi formulario

ya hice una prueba y si funciono...

la prueba la hice con este codigo...


<?php
error_reporting(E_ALL);
mail('[email protected]', 'Pruebita', 'Pruebita');
?>

pero todavia no puedo hacer que funcione la otra que tengo aqui..

y el servidor si tiene havilidad a la funcion mail..
  #6 (permalink)  
Antiguo 15/01/2011, 21:54
Avatar de mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 8 meses
Puntos: 214
Respuesta: no funciona mi formulario

Cita:
Iniciado por Chininino Ver Mensaje
ya hice una prueba y si funciono...

la prueba la hice con este codigo...


<?php
error_reporting(E_ALL);
mail('[email protected]', 'Pruebita', 'Pruebita');
?>

pero todavia no puedo hacer que funcione la otra que tengo aqui..

y el servidor si tiene havilidad a la funcion mail..
entonces el problema sea en como estas formando
las variables antes del envio del mail, por ej,
intenta cerrar comillas antes de las variables php, y luego
concatenarlas y volver a reabrir comillas de ser necesario, por ej

Código PHP:
//y así en todo el fuente
mail$sender"Auto Reply: ".$contact_subject$emailAutoReply$autoReply ); 
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com
  #7 (permalink)  
Antiguo 07/02/2011, 10:29
 
Fecha de Ingreso: febrero-2011
Mensajes: 1
Antigüedad: 13 años, 3 meses
Puntos: 0
no funciona mi formulario--EN LA MISMA SITUACION

tengo un formulario en php que necesito enviar a un buzon de correo he probado con varios codigos y aun no logro que lleguen los correos al destino.active la funcion en el servidor para que dicho proceso se realice pero aun nada podrian ayudarme?aqui esta el codigo:

<?php

session_start();

include('config.php');

include('aplicaciones.php');

include('contador.php');

// var_dump($_POST);

//

// var_dump("el enviar es:".$Enviar);







/*if (isset($Enviar)) {

$remail="[email protected]";

//$remail="[email protected]";

$subjet="ATENCI&Oacute;N AL CIUDADANO";

$fecha = time() ;

$tiempo = date("d.m.Y h:i:a",$fecha);

$email_body ="<h3>Atenci&oacute;n al Ciudadano</h3>";

$email_body .="<strong>Nombre completo:</strong>".$_POST[Nombre]."<br />";

$email_body .="<strong>Correo:</strong>".$_POST[Correo]."<br />";

$email_body .="<strong>Tel&eacute;fonos:</strong>".$_POST[Telefonos]."<br />";

$email_body .="<strong>Ciudad y estado:</strong>".$_POST[CiudadyEstado]." <br/>";

$email_body .="<strong>Mensaje:</strong>".nl2br($_POST[Mensaje])."<br /><br />";

$email_body .="<strong>Enviado el:</strong>".$tiempo."<br />";

$headers = "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$headers .= "From: Inapymi - Atenci&oacute;n al ciudadano\r\n";

$headers .= "Reply-To:".$_POST[Correo]." \r\n";

$headers .= "X-Mailer: Microsoft Outlook Express 6.00.2600.0000";

mail($remail, $subjet, $email_body, $headers);

$positivo=true;



}*/

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-es" lang="es-es">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="keywords"

content="INAPYMI, Desarrollo de la

Peque&Ntilde;a y Mediana Industria" />

<meta name="description" positivo=true;

content="Instituto Nacional de Desarrollo de

la Peque&Ntilde;a y Mediana Industria

" />

<title><?php echo $titulo?></title>

<script src="js/run2.js" type="text/javascript"></script>

<script src="js/validaciones.js" type="text/javascript"></script>



<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>

<link href="css/general.css" rel="stylesheet" type="text/css" />

<style type="text/css">

<!--

#titulo_enlace {

color: #CC0000;

}

.style1 {font-weight: bold}

-->

</style>



<script language="javascript" type="text/javascript">

function vacio(q) {

for ( i = 0; i < q.length; i++ ) {

if ( q.charAt(i) != " " ) {

return true

}

}

return false

}



function valida(F) {



if( vacio(F.Nombre.value) == false ) {

alert("Debe introducir su Nombre Completo.")

return false

} else {



if( vacio(F.Correo.value) == false ) {

alert("Debe introducir su Correo.")

return false

}else{





if( vacio(F.Telefonos.value) == false ) {

alert("Debe introducir su Telefono.")

return false

}else{



if( vacio(F.CiudadyEstado.value) == false ) {

alert("Debe introducir ciudad y estado.")

return false

}else{





if( vacio(F.Mensaje.value) == false ) {

alert("Debe introducir un mensaje.")

return false

}else{



return true



}



return true



}

return true



}



return true



}

}

return false

}









</script>



</head>



<body>

<center>

<div class="contenedor_general">

<?php

include('in_cabecero.php');





/*$url = $_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI'];

/*echo $_SERVER['REQUEST_URI']."<br>";

echo $_SERVER['SERVER_NAME']."<br>";









$x = parse_url($url);

//print_r($x);



$c = explode("/",$x['path']);



$conta = count($c)-1;





if(! empty($x['query'])){



$parametros = "?".$x['query'];



}

Cita:
Iniciado por Chininino Ver Mensaje
Hola chavos, tengo un problemilla y es que no me llega nada a mi correo de email, esta hecho en flash y php, alguien me podria ayudar.......





$nueva_ruta = "EN/".$c[$conta].$parametros;*/





?>

<div class="ruta">

<div class="ruta_izquierda">

<strong><a href="index.php">INICIO</a></strong> / <span id="menu">Atenci&oacute;n Al ciudadano </span> <span id="submenu"></span></div>

<div class="visitas">

&nbsp;&nbsp;<strong>Visitas:&nbsp;</strong><?php echo $leer;?>

</div>

</div>



<div class="desarrollo">



<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr valign="top">

<td align="left" class="enlace_sub_menu"><h1 id="titulo_enlace">ATENCI&Oacute;N AL CIUDADANO</h1>

<ul>

<li><a href="?escribenos">Escr&iacute;benos</a></li>

<li><a href="contactos.php">Contactos</a></li>

</ul></td>

<td style="padding-left:15px; padding-right:20px; padding-top:10px">

<?php

if (!isset($_POST['Correo'])) {

echo '

<form action="send.php" method="post" name="formulario" id="formulario" onSubmit="return valida(this);">

<table width="495" border="0" cellspacing="0" cellpadding="5">

<tr align="left" valign="top">

<td width="30%"><strong>Nombre completo<span class="antetitulo">*</span>:</strong></td>

<td width="70%">

<input name="Nombre" type="text" class="input_atencion" id="Nombre" /> </td>

</tr>

<tr align="left" valign="top">

<td><strong>Correo electr&oacute;nico<span class="antetitulo">*</span>: </strong></td>

<td><input name="Correo" type="text" class="input_atencion" id="Correo" /></td>

</tr>

<tr align="left" valign="top">

<td><strong>Tel&eacute;fonos<span class="antetitulo">*</span>:</strong></td>

<td><input name="Telefonos" type="text" class="input_atencion" id="Telefonos" /></td>

</tr>

<tr align="left" valign="top">

<td><strong>Ciudad y estado<span class="antetitulo">*</span>:</strong></td>

<td><input name="CiudadyEstado" type="text" class="input_atencion" id="CiudadyEstado" /></td>

</tr>

<tr align="left" valign="top">

<td><strong>Mensaje<span class="antetitulo">*</span>:</strong></td>

<td><textarea name="Mensaje" cols="45" rows="5" class="input_atencion" id="Mensaje"></textarea></td>

</tr>

<tr align="left" valign="top">

<td>&nbsp;</td>

<td><input type="submit" name="Enviar" id="Enviar" value="Enviar" /></td>

</tr>

<tr align="left" valign="top">

<td>&nbsp;</td>

<td><span class="antetitulo">* campos obligatorios</span></td>

</tr>

</table>

</form>'; }

?>

</td>

<td class="home_desarrollo_der">

<?php

include('in_derecha.php');

?>

</td>

</tr>

</table>

</div>

<?php include('in_pie.php');?>

</div>

</center>

</body>

</html>


----------------------------------------------------OTRO PHP APARTE-------------------------------------




<?php

session_start();

include('config.php');

include('aplicaciones.php');

include('contador.php');

?>
<?php
error_reporting(E_ALL);
$Nombre = $_POST['Nombre'];
$Correo_electronico= $_POST['Correo'];
$Telefonos = $_POST['Telefonos'];
$CiudadyEstado=$_POST['CiudadyEstado'];
$Mensaje=$_POST['Mensaje'];

$header = 'From: ' . $Correo . ", de la poblacion ".$CiudadyEstado."\r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$mensaje = "Este mensaje fue enviado por " . $Nombre . " \r\n";
$mensaje .= "Su e-mail es: " . $Correo . " \r\n";
$mensaje .= "Telefonos" . $_POST['Telefonos'] . " \r\n";
$mensaje .="Mensaje".$_POST['Mensaje'] . " \r\n";
$mensaje .= "Enviado el " . date('d/m/Y', time());

$para = '[email protected]';
$asunto = 'Importante';

mail('[email protected]','Pruebita' ,'Pruebita');

echo 'mensaje enviado correctamente';

?>
  #8 (permalink)  
Antiguo 09/02/2011, 20:54
Avatar de mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 8 meses
Puntos: 214
Respuesta: no funciona mi formulario

<saludos>
1. has intentado enviar el mail a otros correos de gmail, hotmail, etc??
2. el servidor donde estas haciendo el envio es local de un equipo tuyo
o es de un hosting?
3. si es local, esta instalado un servidor de correo?
4. si es hosting, esta activo en el hosting la función mail (certificado por ellos?
5. has probado en otro servidor?
</saludos>
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com

Etiquetas: flash, php, actionscript
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:58.