<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comentarios en: Formulario Flash, Actionscript y PHP</title>
	<link>http://www.metodoprofesional.es/blog/recursos-flash/formulario</link>
	<description>Método Profesional: profesionales formando profesionales</description>
	<pubDate>Sat, 04 Feb 2012 23:23:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>Por: a.franco</title>
		<link>http://www.metodoprofesional.es/blog/recursos-flash/formulario#comment-44</link>
		<pubDate>Mon, 14 Jan 2008 09:14:29 +0000</pubDate>
		<guid>http://www.metodoprofesional.es/blog/recursos-flash/formulario#comment-44</guid>
					<description>Hola Adrián, no veo nada raro en el código, debería de funcionar correctamente. Comprueba el contactar.php y repasalo por si se te ha saltado alguna coma o algo por el estilo ya que php es un poco fastidioso en ese sentido.</description>
		<content:encoded><![CDATA[<p>Hola Adrián, no veo nada raro en el código, debería de funcionar correctamente. Comprueba el contactar.php y repasalo por si se te ha saltado alguna coma o algo por el estilo ya que php es un poco fastidioso en ese sentido.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Por: adrian</title>
		<link>http://www.metodoprofesional.es/blog/recursos-flash/formulario#comment-43</link>
		<pubDate>Sun, 13 Jan 2008 18:48:15 +0000</pubDate>
		<guid>http://www.metodoprofesional.es/blog/recursos-flash/formulario#comment-43</guid>
					<description>hola , estuve intentando hacer funcionar el formulario flash, modificando los datos tal cual explicas y no me funciona. Lo subo al servidor y cuando envio el mensaje dice q no se a podido enviar q lo intente mas tarde. aqui te pego las modificaciones que hice a ver si me puedes decir en que me equivoco:
$nombre&lt;/b&gt; de &lt;b&gt;$poblacion&lt;/b&gt; Escribió un mensaje desde la web de www.tuweb.com".''."E-Mail de contacto: &lt;b&gt;$email&lt;/b&gt;".''."Telefono de contacto: &lt;b&gt;$telefono&lt;/b&gt;".''."MENSAJE de $nombre:".''."&lt;b&gt;$mensaje&lt;/b&gt;";
	
	//para el envío en formato HTML
	$headers = "MIME-Version: 1.0\r\n";
	$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

	//dirección del remitente
	$headers .= "From: INFO TUWEB 

y en flash

stop();

System.useCodepage = true;
var verificar_formulario:Boolean = true;
var texto_confirmacion:String = "";
borrar_formulario();

// Funcion para borrar el formulario
borrar_formulario = function () {
	txt_nombre_mc.txt_nombre.text = "";
	txt_mail_mc.txt_email.text = "";
	txt_asunto_mc.txt_asunto.text = "";
	txt_mensaje_mc.txt_mensaje.text = "";
	txt_telefono_mc.txt_telefono.text = "";
};

//Comprobamos que no se dejen ningun campo en blanco
comprobar_formulario = function () {
	if (txt_nombre_mc.txt_nombre.text == "") {
		txt_nombre_mc.txt_nombre.text = "CAMPO OBLIGATORIO";
		verificar_formulario = false;
	}
	if (txt_mail_mc.txt_email.text == "") {
		txt_mail_mc.txt_email.text = "CAMPO OBLIGATORIO";
		verificar_formulario = false;
	}
	if (txt_asunto_mc.txt_asunto.text == "") {
		txt_asunto_mc.txt_asunto.text = "CAMPO OBLIGATORIO";
		verificar_formulario = false;
	}
	if (txt_telefono_mc.txt_telefono.text == "") {
		txt_telefono_mc.txt_telefono.text = "CAMPO OBLIGATORIO";
		verificar_formulario = false;
	}
	if (txt_mensaje_mc.txt_mensaje.text == "") {
		txt_mensaje_mc.txt_mensaje.text = "CAMPO OBLIGATORIO";
		verificar_formulario = false;
	}
	if (txt_nombre_mc.txt_nombre.text != "CAMPO OBLIGATORIO" &#38;&#38; txt_mail_mc.txt_email.text != "CAMPO OBLIGATORIO" &#38;&#38; txt_asunto_mc.txt_asunto.text != "CAMPO OBLIGATORIO" &#38;&#38; txt_mensaje_mc.txt_mensaje.text != "CAMPO OBLIGATORIO") {
		verificar_formulario = true;
	}
};
// Función para enviar formulario
enviar_formulario = function () {
	lv = new LoadVars();
	lv.nombre = txt_nombre_mc.txt_nombre.text;
	lv.email = txt_mail_mc.txt_email.text;
	lv.telefono = txt_telefono_mc.txt_telefono.text;
	lv.asunto = txt_asunto_mc.txt_asunto.text;
	lv.mensaje = txt_mensaje_mc.txt_mensaje.text;
	//En la línea de debajo, la dirección web que aparece la tienes que cambiar por la
	//dirección web a la que has subido el archivo contactar.php de tu servidor.
	lv.sendAndLoad("http://www.iberointernet.es/contactar.php", lv, "POST");
	lv.onLoad = function() {
		//Aquí es donde cargamos el texto de confirmación de envío o de no envío
		// que se obtiene de lv.sendAndLoad("http://www.direccionweb.com/contactar.php", lv, "POST");
		if (this.estado == "ok") {
			gotoAndPlay("confirmacion");
			texto_confirmacion = "El mensaje ha sido enviado satisfactoriamente. Gracias.";
		} else {
			texto_confirmacion = "El mensaje no se ha podido enviar. Intentelo de nuevo más tarde. Gacias.";
			gotoAndPlay("confirmacion");
		}
	};
};
//Funcion para rebobinar el mensaje de confirmación al cerrar.
rebobinar = function (inicio:Number, fin:Number) {
	this.onEnterFrame = function() {
		this.prevFrame();
		inicio--;
		if (inicio == fin) {
			delete this.onEnterFrame;
		}
	};
};

el servido soporta PHP 4 y 5
he modificado los permisos ha 777
realice prueba de envio de mail con el siguiente codigo 



y lo recibo perfectamente .

espero puedas ayudarme

gracias</description>
		<content:encoded><![CDATA[<p>hola , estuve intentando hacer funcionar el formulario flash, modificando los datos tal cual explicas y no me funciona. Lo subo al servidor y cuando envio el mensaje dice q no se a podido enviar q lo intente mas tarde. aqui te pego las modificaciones que hice a ver si me puedes decir en que me equivoco:<br />
$nombre</b> de <b>$poblacion</b> Escribió un mensaje desde la web de <a href="http://www.tuweb.com&#8221;." rel="nofollow">www.tuweb.com&#8221;.</a>'&#8217;.&#8221;E-Mail de contacto: <b>$email</b>&#8220;.'&#8217;.&#8221;Telefono de contacto: <b>$telefono</b>&#8220;.'&#8217;.&#8221;MENSAJE de $nombre:&#8221;.'&#8217;.&#8221;<b>$mensaje</b>&#8220;;</p>
<p>	//para el envío en formato HTML<br />
	$headers = &#8220;MIME-Version: 1.0\r\n&#8221;;<br />
	$headers .= &#8220;Content-type: text/html; charset=iso-8859-1\r\n&#8221;;</p>
<p>	//dirección del remitente<br />
	$headers .= &#8220;From: INFO TUWEB </p>
<p>y en flash</p>
<p>stop();</p>
<p>System.useCodepage = true;<br />
var verificar_formulario:Boolean = true;<br />
var texto_confirmacion:String = &#8220;&#8221;;<br />
borrar_formulario();</p>
<p>// Funcion para borrar el formulario<br />
borrar_formulario = function () {<br />
	txt_nombre_mc.txt_nombre.text = &#8220;&#8221;;<br />
	txt_mail_mc.txt_email.text = &#8220;&#8221;;<br />
	txt_asunto_mc.txt_asunto.text = &#8220;&#8221;;<br />
	txt_mensaje_mc.txt_mensaje.text = &#8220;&#8221;;<br />
	txt_telefono_mc.txt_telefono.text = &#8220;&#8221;;<br />
};</p>
<p>//Comprobamos que no se dejen ningun campo en blanco<br />
comprobar_formulario = function () {<br />
	if (txt_nombre_mc.txt_nombre.text == &#8220;&#8221;) {<br />
		txt_nombre_mc.txt_nombre.text = &#8220;CAMPO OBLIGATORIO&#8221;;<br />
		verificar_formulario = false;<br />
	}<br />
	if (txt_mail_mc.txt_email.text == &#8220;&#8221;) {<br />
		txt_mail_mc.txt_email.text = &#8220;CAMPO OBLIGATORIO&#8221;;<br />
		verificar_formulario = false;<br />
	}<br />
	if (txt_asunto_mc.txt_asunto.text == &#8220;&#8221;) {<br />
		txt_asunto_mc.txt_asunto.text = &#8220;CAMPO OBLIGATORIO&#8221;;<br />
		verificar_formulario = false;<br />
	}<br />
	if (txt_telefono_mc.txt_telefono.text == &#8220;&#8221;) {<br />
		txt_telefono_mc.txt_telefono.text = &#8220;CAMPO OBLIGATORIO&#8221;;<br />
		verificar_formulario = false;<br />
	}<br />
	if (txt_mensaje_mc.txt_mensaje.text == &#8220;&#8221;) {<br />
		txt_mensaje_mc.txt_mensaje.text = &#8220;CAMPO OBLIGATORIO&#8221;;<br />
		verificar_formulario = false;<br />
	}<br />
	if (txt_nombre_mc.txt_nombre.text != &#8220;CAMPO OBLIGATORIO&#8221; &amp;&amp; txt_mail_mc.txt_email.text != &#8220;CAMPO OBLIGATORIO&#8221; &amp;&amp; txt_asunto_mc.txt_asunto.text != &#8220;CAMPO OBLIGATORIO&#8221; &amp;&amp; txt_mensaje_mc.txt_mensaje.text != &#8220;CAMPO OBLIGATORIO&#8221;) {<br />
		verificar_formulario = true;<br />
	}<br />
};<br />
// Función para enviar formulario<br />
enviar_formulario = function () {<br />
	lv = new LoadVars();<br />
	lv.nombre = txt_nombre_mc.txt_nombre.text;<br />
	lv.email = txt_mail_mc.txt_email.text;<br />
	lv.telefono = txt_telefono_mc.txt_telefono.text;<br />
	lv.asunto = txt_asunto_mc.txt_asunto.text;<br />
	lv.mensaje = txt_mensaje_mc.txt_mensaje.text;<br />
	//En la línea de debajo, la dirección web que aparece la tienes que cambiar por la<br />
	//dirección web a la que has subido el archivo contactar.php de tu servidor.<br />
	lv.sendAndLoad(&#8221;http://www.iberointernet.es/contactar.php&#8221;, lv, &#8220;POST&#8221;);<br />
	lv.onLoad = function() {<br />
		//Aquí es donde cargamos el texto de confirmación de envío o de no envío<br />
		// que se obtiene de lv.sendAndLoad(&#8221;http://www.direccionweb.com/contactar.php&#8221;, lv, &#8220;POST&#8221;);<br />
		if (this.estado == &#8220;ok&#8221;) {<br />
			gotoAndPlay(&#8221;confirmacion&#8221;);<br />
			texto_confirmacion = &#8220;El mensaje ha sido enviado satisfactoriamente. Gracias.&#8221;;<br />
		} else {<br />
			texto_confirmacion = &#8220;El mensaje no se ha podido enviar. Intentelo de nuevo más tarde. Gacias.&#8221;;<br />
			gotoAndPlay(&#8221;confirmacion&#8221;);<br />
		}<br />
	};<br />
};<br />
//Funcion para rebobinar el mensaje de confirmación al cerrar.<br />
rebobinar = function (inicio:Number, fin:Number) {<br />
	this.onEnterFrame = function() {<br />
		this.prevFrame();<br />
		inicio&#8211;;<br />
		if (inicio == fin) {<br />
			delete this.onEnterFrame;<br />
		}<br />
	};<br />
};</p>
<p>el servido soporta PHP 4 y 5<br />
he modificado los permisos ha 777<br />
realice prueba de envio de mail con el siguiente codigo </p>
<p>y lo recibo perfectamente .</p>
<p>espero puedas ayudarme</p>
<p>gracias
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Por: Javier</title>
		<link>http://www.metodoprofesional.es/blog/recursos-flash/formulario#comment-5</link>
		<pubDate>Wed, 26 Sep 2007 08:10:32 +0000</pubDate>
		<guid>http://www.metodoprofesional.es/blog/recursos-flash/formulario#comment-5</guid>
					<description>Gran recurso aurelio, gracias por tu aportación. Por cierto, genial tu web, enhorabuena.</description>
		<content:encoded><![CDATA[<p>Gran recurso aurelio, gracias por tu aportación. Por cierto, genial tu web, enhorabuena.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

