Necesito ayuda por favor.
Tengo 2 combobox los cuales se llenan desde php
necesito recoger los valores de estos 2 combos y enviarlos a una siguiente pagina la cual valide si son los que hay en la base y me muestre una tabla el primer codigo es este
pag1:
Código PHP:
<form name "" action="../bd/prueba8_copy.php">
<tr>
<td width="228" height="24"><span class="Estilo6">Seleccione el Subcliente</span></td>
<td width="168"><select name="subcliente" id="subcliente" onChange="cargafechas1();">
<option value="">---SELECCIONE---</option>
<?
$sqlempresa=mysql_query("select distinct(SubCliente) from prueba2 order by SubCliente asc",$cn);
while ($rsempresa=mysql_fetch_array($sqlempresa))
{
?>
<option value="<?=$rsempresa['SubCliente'];?>">
<?=$rsempresa['SubCliente'];?>
</option>
<?
}
?>
</select></td>
</tr>
<tr>
<td height="24"><span class="Estilo6">Seleccione la Fecha</span></td>
<td><div id="principal2">
<select name="Fecha_en2" id="Fecha_en2">
<option value="">---SELECCIONE---</option>
<?
while ($rsfechas=mysql_fetch_array($sqlfechas))
{
?>
<option value="<?=$rsfechas['Fecha_en']; ?>"><?=$rsfechas['Fecha_en']; ?></option>
</select>
El que recibe la info es este:
pag2:
Código PHP:
<?php
//echo "SITIO TEMPORALMENTE FUERA DE SERVICIO";
$conexion = mysql_connect("127.0.0.1", "user", "pass");
mysql_select_db("aplicaciones", $conexion);
//'Captuta la fecha del Combobox [1]
$CapFecha=$_GET['Fecha_en2'];
//'Captuta el cliente del Combobox [2]
$CapCliente=$_GET['subcliente'];
echo $CapCliente;
echo " ";
echo $CapFecha;
$queEmp = "SELECT * FROM prueba2 WHERE Fecha_en = '$CapFecha'";//ORDER BY Referencia ASC;
$resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
$totEmp = mysql_num_rows($resEmp);
?>
<br>
<br>
<br>
</div>
<table width="580" border="1" align="center">
<tr align="center">
<td width="84" class="Estilo15 Estilo1"><div style="width:100px;"align="center"><span class="style9 Estilo19"><strong>CONTACTO</strong></span></div></td>
<td width="100" class="Estilo1"><div style="width:110px; height: 35px;" align="center"><span class="style9 Estilo19"><strong>EMPRESA</strong></span></div></td>
<td width="100" class="Estilo1"><div style="width:120px;"align="center"><span class="style9 Estilo19"><strong>TRANSPORTE</strong></span></div></td>
<td width="100" class="Estilo1"><div style="width:150px;"align="center"><span class="style9 Estilo19"><strong>N° GUIA</strong></span></div></td>
</tr>
</table>
<?php
if ($totEmp>0){
while ($rowEmp=mysql_fetch_array($resEmp)){
if (($CapFecha==$rowEmp['Fecha_en'])&&($CapCliente==$rowEmp['SubCliente']))
{
?>
</span></span>
<table width="580" border="1" align="center">
<tr>
<td width="85" align="center" valign="middle" class="Estilo8"><div style="width:100px; height: 50px; "align="center" class="Estilo19"> <?php echo $con= $rowEmp['Contacto']; ?> </ div></div></td>
<td width="200" align="center" class="Estilo8"><div style="width:110px;"align="center" class="Estilo19"> <?php echo $fecha=$rowEmp['Empresa']; ?> </ div></div></td>
<td width="116" align="center" class="Estilo8"><div style="width:120px;"align="center" class="Estilo19"> <?php echo $trans=$rowEmp['Transporte'];?></ div></div></td>
<td width="116" align="center" class="Estilo8"><div style="width:150px;"align="center" class="Estilo19"> <?php echo $ngui=$rowEmp['n_guia'];?></ div></div></td>
</table>
<?php
}
}
}
//}
?>
</p>
<table width="432" border="0" align="center">
<tr>
<td width="211" height="66" align="center" valign="middle"><form id="form2" name="form1" method="post" value="Imprimir" onclick="window.print();">
<label>
<input type="submit" value="Imprimir"style="BORDER: rgb(85,0,85) 1px inset; FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
BACKGROUND-COLOR: rgb(255,236,255)"/>
</label>
</form>
</td>
<td width="211" align="center" valign="middle">
<form name="form1" method="post" action="/bonco/muestrass/index1.php">
<input type="submit" name="button" id="button" value="Nueva Consulta"style="BORDER: rgb(85,0,85) 1px inset; FONT-SIZE: 10pt; FONT-FAMILY: Verdana;
BACKGROUND-COLOR: rgb(255,236,255)"/>
</form></td>
</tr>
</table>
No le lleva las variables a esta segunda pagian, y me gustaria saber cual es el error, puesto que tengo otro identico y si me funciona, ls he comparado y no veo nada diferente...
