Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/01/2010, 19:27
WebPL
 
Fecha de Ingreso: octubre-2009
Mensajes: 29
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: variables dentro de "if"

Gracias por responder
--------------------------------------
EDIT:
ya intente modificando otra ves el codigo pero por alguna razon no se muestran las variables, miren:



descarga.php

Código PHP:
<?PHP
include ("directorio.php");
echo (
"
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
<html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
    <title>(-:-[ PoKe LeGeNdS ]-:-) | Zona de Descargas</title>
    <link rel='stylesheet' type='text/css' href='http://www.poke-legends.co.cc/apariencia/apariencia.css'>
    <link rel='icon' href='http://www.poke-legends.co.cc/apariencia/favicon.ico'>
    </head>
<body id='cuerpo-zd'>
<div id='zona-descarga'>
<div id='titulo-zd'></div>
<div id='ficha-descarga'><h4>Ficha de descarga</h4>
<b>Descripción: </b>"
); echo($descripcion); echo ("<br>
<b>Nombre: </b>"
); echo($nombre); echo ("<br>
<b>Idioma: </b>"
); echo($idioma); echo ("<br>
<b>Tamaño (comprimido): </b>"
); echo($tam); echo ("<br>
<b>Servidor: </b>"
); echo($servidor); echo ("<br>
</div>
<div id='r-p-l'><a href='http://www.poke-legens.co.cc/'><img border='0' alt='Imagen' width='300' height='90' title='Regresar a Poke Legends!' src='http://www.poke-legends.co.cc/apariencia/regresar-p-l.png' /></a></div>
</div>
<iframe src='http://"
); echo($iframe); echo ("' align='bottom' id='external' style='width:100%; height:480px;' frameborder='0' marginheight='0' marginwidth='0'>
Tu navegador no soporta el iframe.
</iframe>
</body>
</html>

"
);
?>

directorio.php

Código PHP:
<?PHP
$id
=$_GET["id"];
if(isset(
$id)){

if (
$id == "1")  {

$descripcion      ==  "Emulador de GB y GBC";
$nombre           ==  "VisualBoy";
$idioma           ==  "Multi-Idioma";
$tam              ==  "147 KB";
$servidor         ==  "MediaFire";
$iframe           ==  "www.mediafire.com/?my2m5ngxycz";
            }

}        

?>

Última edición por WebPL; 08/01/2010 a las 00:22