Re: Ayuda con $_POST
| From: | Esteban Fernández | Date: | Thu, 04 Mar 2004 20:16:13 +0000 |
| Subject: | Re: Ayuda con $_POST | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-46251@lists.php.net to get a copy of this message | ||
el FORM esta mal, debe ir al comienzo de la pagina, y finalizar con </form> al
finalizar, la version correcta seria asi:
<!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>
<form action=alarma2.php method="post" align=center >
<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">
<input type="submit" name="Submit" value="CONSULTAR">
</p>
</blockquote>
<p align="center"> </p>
</form>
</body>
</html>
Saludos y suerte.
EF.
----- Original Message -----
From: "Rafael Morales" <rmorales@operaciones.segob.gob.mx>
To: <php-es@lists.php.net>
Sent: Thursday, March 04, 2004 5:23 PM
Subject: [PHP-ES] Ayuda con $_POST
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>
--
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php