Código:
Habia pensado en hacer algo como lo que esta en negrita, pero no funciona. :(<form name="formulario" action="showform5.php" method="post"> <body> <div class='zpCalSubHeader' align='center'>Booking System - Calendario de Reservas</div> <div id="showSpecial" align="center"> <table width="600" class='table_special-date' border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="10" class="table_special-date-header-left"> </td> <td width="180" valign="middle" bgcolor="#6F8DB9" class="table_special-date-header-right">Arrival Date:</td> <td width="9" class="table_special-date-header-left"> </td> <td width="450" valign="middle" class="table_special-date-header-right">Price:</td> </tr> <tr> <td colspan="2" class="table_special-date-date" align=center><input style='text-align:center; font-weight:bold' type='text' name='tdDate' id='tdDate' value='' SIZE='17' MAXLENGTH='25'/> </td> <td colspan="2" id='tdEvent' class="table_special-date-event"><?php if (!isset($_POST['tdDate'])) { $arrival1 = 0; } else { $arrival1=$_POST['tdDate']; list($dias,$mes,$dia,$ano)=explode(' ',$arrival1); include ("functions.php"); if ($mes == 'Jun'){ $mes = '06'; } if ($mes == 'Jan'){ $mes = '01'; } if ($mes == 'Feb'){ $mes = '02'; } if ($mes == 'Mar'){ $mes = '03'; } if ($mes == 'Apr'){ $mes = '04'; } if ($mes == 'May'){ $mes = '05'; } if ($mes == 'Jul'){ $mes = '07'; } if ($mes == 'Aug'){ $mes = '08'; } if ($mes == 'Sep'){ $mes = '09'; } if ($mes == 'Oct'){ $mes = '10'; } if ($mes == 'Nov'){ $mes = '11'; } if ($mes == 'Dec'){ $mes = '12'; } $arrival = "$ano-$mes-$dia"; } if (!isset($_POST["name"])) { $name = 0; } else { $name = $_POST["name"]; } if (!isset($_POST["userid"])) { $userid = 0; } else { $userid=$_POST["userid"]; } $result = mysql_query("select id from rooms where name='$userid'"); $row = mysql_fetch_assoc($result); $roomid = "$row[id]"; echo "<input type='hidden' name='name' value='$name'>"; echo "<input type='hidden' name='userid' value='$userid'>"; if (!$name) { echo 'Please select a property first.'; exit; } elseif (!$userid) { echo "You have selected $name, "; echo 'please select a Room.'; exit; } if (ereg("^[0-9]+[.]?[0-9]*$", $userid)) { echo "You have selected $name, "; echo 'please select a Room.'; exit; } elseif (!$arrival1) { echo "$name -> $userid, select a date and <INPUT TYPE='submit' NAME='formulario' VALUE='view price'>"; } elseif ($arrival1) { $arrival = trim($arrival); list ($cleandata,$month,$date) = explode("-",$arrival); echo "Select another room to <INPUT TYPE='submit' NAME='formulario' VALUE='view price'><br>$name -> $userid ->$arrival:"; echo dateprice($name,$userid,$month,$date,$roomid); } ?></form><form name='form' action='showconfirm.php' method='post'> <?php echo "<input type='hidden' name='name' value='$name'>"; echo "<input type='hidden' name='userid' value='$userid'>"; echo "<input type='hidden' name='tdDate' id='tdDate' value=''>"; echo "<input type='button' name='confirm' value='confirm' onclick='valida_envia()'>"; ?></form>
Espero puedan ayudarme.
S@|u2.