Ver Mensaje Individual
  #15 (permalink)  
Antiguo 27/04/2005, 00:54
karpoj23
 
Fecha de Ingreso: diciembre-2003
Ubicación: Málaga
Mensajes: 495
Antigüedad: 20 años, 4 meses
Puntos: 0
he pensado utilizar esto:


if ((empty($_POST[dc1])) and (empty($_POST[dc2])))
{
echo "<FORM name='demoform' action='index.php' onsubmit='alert('form submit');'>";
echo "<div style='position:absolute;top:170px;left:158'><font face='tahoma' size=1 color=#9c9ece>Desde <input name='dc1' size='12' onsubmit='alert('form submit');' onfocus='this.blur()' readonly><a href='javascript:void(0)' onclick='if(self.gfPop)gfPop.fStartPop(document.de moform.dc1,document.demoform.dc2);return false;' HIDEFOCUS><img align='absmiddle' src='DateRange/calbtn.gif' width='34' height='22' border='0' alt=''></a></font></div>";
echo "<div style='position:absolute;top:200px;left:157'><font face='tahoma' size=1 color=#9c9ece>Hasta: <input name='dc2' size='12' onsubmit='alert('form submit');' onfocus='this.blur()' readonly><a href='javascript:void(0)' onclick='if(self.gfPop)gfPop.fEndPop(document.demo form.dc1,document.demoform.dc2);return false;' HIDEFOCUS><img align='absmiddle' src='DateRange/calbtn.gif' width='34' height='22' border='0' alt=''></a></fotn></div>";
echo "<iframe width=132 height=142 name='gToday:contrast:agenda.js' id='gToday:contrast:agenda.js' src='DateRange/ipopeng.htm' scrolling='no' frameborder='0' style='visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;'></iframe>";
echo "<div style='position:absolute;top:230;left:350'><input type='submit' name='busdesfecha' title='Introducir Fecha' value='Introducir Fecha'></div>";
echo "</form>";
}
else
{
$a=$_POST[dc1];
$b=$_POST[dc2];
echo $a;
echo $b;
?>

<form method="post" action="lista.php">

<?
echo "<input type='hidden' value='<? $a ?>' name='dc1' />";
echo "<input type='hidden' value='<? $b ?>' name='dc2' />";
?>

Es decir, si no he mandado nada q aparezca el calendario, y si ya ha mandado algo q lo recupere y lo meto en 2 variables, para despues meterlos en 2 inputs. No lo puedo probar hasta la noche, pero como lo ven???