![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/04/2007, 09:55
|
| | Fecha de Ingreso: octubre-2005
Mensajes: 151
Antigüedad: 19 años, 3 meses Puntos: 1 | |
Re: Pasar variable desde un SWF a la misma Página PHP Botones flash
boton1_mc.onRelease=function(){
getURL("http://www.pagina.com/pagina.php?valor=1", "_self");
}
boton2_mc.onRelease=function(){
getURL("http://www.pagina.com/pagina.php?valor=2", "_self");
}
boton3_mc.onRelease=function(){
getURL("http://www.pagina.com/pagina.php?valor=3", "_self");
} pagina.php
$valor=$_GET['valor'];
$texto="texto1";
if($valor==1){
$texto="Texto1";
}
if($valor==2){
$texto="Texto2";
}
if($valor==3){
$texto="Texto3";
}
echo $texto; |