Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/07/2002, 05:40
Avatar de ferny
ferny
Il capo della mafia
 
Fecha de Ingreso: febrero-2002
Ubicación: Al final del cable
Mensajes: 10.080
Antigüedad: 22 años, 1 mes
Puntos: 55
Re: Funcion include

Gracias Cluster por las respuestas.
Lo que no entiendo es que hace la primera linea: $pagina=$_GET["pagina"];
Así que hice una prueba sin poner esta línea y me va más o menos. ¿Me puedes explicar qué hace eso y como se usa (que pongo en el enlace)? Ten en cuenta que soy novato...

Bueno, hasta aquí perfecto, pero al cargar la página del include sólo me sale la página, ni imágenes, ni estilos, ni nada más.
Subí la página al servidor, mirala con tus propios ojos: <a href='ir.asp?http://www.solodivx.host.sk/1.php...' target='_blank'>http://www.solodivx.host.sk/1.php......</a>
La página 1.php llama a enlace.php que es donde está el include. En 1.php puse en los enlaces enlace.php?id=1 y el código fuente de enlace.php es:
Código:
 &lt;html&gt;
&lt;head&gt;
&lt;title&gt;Pagina.PHP&lt;/title&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;/head&gt;
&lt;body leftmargin=&quot;0&quot; topmargin=&quot;0&quot; rightmargin=&quot;0&quot; bottommargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;&gt;
&lt;table border=&quot;0&quot; width=&quot;100%&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;
    &lt;td background=&quot;http://www.solodivx.host.sk/fondo.jpg&quot;&gt;Aqu&amp;iacute; es donde ir&amp;iacute;a ese &amp;quot;frame&amp;quot; 
      explicativo. Est&amp;aacute; hecho con tablas.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;
&lt;?
if ($id==&quot;1&quot;){
include(&quot;http://www.forosdelweb.com&quot;);
}
if ($id==&quot;2&quot;){
include(&quot;http://www.hotmail.com&quot;);
}
?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
Gracias


<hr>
Saludos de Ferny.
"En teoría no hay diferencia entre teoría y práctica, pero en la práctica sí la hay"
Pásate por mi página de DivX <a href="http://www.solodivx.host.sk" title="SOLODIVX">http://www.solodivx.host.sk</a>