Como paso una variable
| From: | StR | Date: | Mon, 16 Oct 2000 05:49:36 +0000 |
| Subject: | Como paso una variable | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-2411@lists.php.net to get a copy of this message | ||
Bueno, vamos a ver si me explico bien.
Tengo varios archivos (noticia0.txt, noticia1.txt, noticia2.txt .....)
y tengo un archivo despliega.php, y tego otro que es el index.php
Ahora como le mando la variable ¬icia a despliega.php?
Porque leí en el manual que esto no funcionaría
// index.php
<html>
<body>
<a href = "despliega.php?noticia=noticia0.txt"> Noticia # 0 </a>
<a href = "despliega.php?noticia=noticia1.txt"> Noticia # 1 </a>
<a href = "despliega.php?noticia=noticia2.txt"> Noticia # 2 </a>
</body>
</html>
// despliega.php
<html>
<body>
<? require ($noticia);
?>
</body>
</html>
Los archivos estan de esta forma. Si pueden ayudarme, se los agradecería mucho.
Gracias de Antemano
StR