Ayuda con $_POST
| From: | Rafael Morales | Date: | Thu, 04 Mar 2004 20:23:41 +0000 |
| Subject: | Ayuda con $_POST | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-46250@lists.php.net to get a copy of this message | ||
Hola. Tengo 2 archivos file1.php y file2.php, ahora bien lo que quiero hacer
es pasar algunos resultados del file1.php al file2.php. Mando el codigo del
file1 del cual quiero obtener los resultados de las variables e imprimirlas
en el file2. Espero me entiendan pero no se como explicarlo.
Saludos
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Busqueda de Alarmas</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> </p>
<p> </p>
<p align="center">BUSQUEDA DE ALARMAS</p>
<p align="center"> </p>
<blockquote>
<p align="left">Tipo de Alarma</p>
<blockquote>
<p align="left">
<input type="radio" name="radiobutton"
value="radiobutton">
Llamadas no autorizadas</p>
<p align="left">
<input type="radio" name="radiobutton"
value="radiobutton">
Detección de consumo excedido</p>
</blockquote><br>
<?
$yes_month = date(m);
$yes_year = date(Y);
$yesterday = date("d", strtotime("1 day ago"))
?>
<table border=1>
<th align=center colspan=4>Fecha de Inicio
<tr>
<td align=center>Día
<td align=center>Mes
<td align=center>Año
<tr>
<td><INPUT NAME=Dia VALUE=<?print "$yesterday";?> SIZE=2 MAXSIZE=2>
/<td><INPUT NAME=Mes VALUE=<?print "$yes_month";?> SIZE=2 MAXSIZE=2>
/<td><INPUT NAME=Año VALUE=<?print "$yes_year";?> SIZE=4 MAXSIZE=4>
</table><br><br>
<table border=1>
<th align=center colspan=4>Fecha Fin
<tr>
<td align=center>Día
<td align=center>Mes
<td align=center>Año
<tr>
<td><INPUT NAME=Dia VALUE=<?print "$yesterday";?> SIZE=2 MAXSIZE=2>
/<td><INPUT NAME=Mes VALUE=<?print "$yes_month";?> SIZE=2 MAXSIZE=2>
/<td><INPUT NAME=Año VALUE=<?print "$yes_year";?> SIZE=4 MAXSIZE=4>
</table><br><br>
<p align="left"> </p>
<p align="center">
<form action=alarma2.php method="post" align=center >
<input type="submit" name="Submit" value="CONSULTAR">
</p>
</blockquote>
<p align="center"> </p>
</body>
</html>