Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/12/2009, 18:37
alsuara
 
Fecha de Ingreso: diciembre-2009
Mensajes: 19
Antigüedad: 14 años, 3 meses
Puntos: 0
¿Donde está el error en el paso del parametro?

Estoy intentando pasar un parámetro (NP) que me llega por URL a un swf utilizando PHP para leer el parámetro a una variable y luego pasándolo con Flashvars, pero no hay manera.

Si se hace la siguiente llamada:

"http://www.diseloalasestrellas.com/REGALE_UN_CERTIFICADO.html?NP=1117"

Y el fichero "REGALE_UN_CERTIFICADO.html" contiene el siguiente código

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>DISELO A LAS ESTRELLAS. Envíe su mensaje al espacio GRATIS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body bgcolor="#000045">
<?php $NP = $_GET['NP'];?>
<center>
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="990" height="1800">
<param name="movie" value="/FLASH/DALE_COMPRA.swf" />
<param name=FlashVars value="NP=XYZ<?php echo($NP);?>" />
<param name="bgcolor" value="#000045" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/FLASH/DALE_COMPRA.swf" width="990" height="1800">
<!--<![endif]-->
<p>DISELO A LAS ESTRELLAS.<br>Envíe su mensaje al espacio y reciba un certificado gratis.<br>Si puede leer este texto es porque no tiene Flash Player instalado en su nvegador. Instalarlo es facil y seguro.</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</center>
</body>
</html>

Sólo consigo que en el Flash me aparezca "XYZ" y no "XYZ1117" que es lo que intento que llegue a la película.

¿Alguien tiene idea de qué puede estar pasando?

Muchas gracias de antemano por vuestra ayuda.

alsuara