
problemas con checkbox
Publicado por Sophie (15 intervenciones) el 10/04/2015 18:40:13
Holas, tengo un problema tonto con el checkbox, me daña todo el codigo y verifico y no encuentro el error, alguien podria ayudarme?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<table WIDTH="100%" BORDER="1" BGCOLOR="#F7BE81" class="tablaproductos">
<tr>
<th>Tomo</th>
<th>Codigo</th>
<th>Ruta</th>
<th>Descripcion</th>
<th>Cantidad</th>
<th>Unidad</th>
<th>Estado</th>
<th>Fecha</th>
<th> <input type="submit" name="bteli" value="Eliminar"/></th>
</tr>
<?php
include 'conexion.php';
echo ('
<form action="eliminar.php" method="post">
');
// and fecha="'.$_POST["fecha"].'"
$informacion=('select * from pedidos where ruta="'.$_POST["ruta"].'" and fecha="'.$_POST["fecha"].'"');
$consulta=(mysql_query($informacion,$conexion));
while ($datos = mysql_fetch_array($consulta)) {
echo "
<tr><td>".$datos["tomo"]."</td>
<td>".$datos["codigo"]."</td>
<td>".$datos["ruta"]."</td>
<td>".$datos["descripcion"]."</td>
<td>".$datos["cantidad"]."</td>
<td>".$datos["unidad"]."</td>
<td>".$datos["estado"]."</td>
<td>".$datos["fecha"]."</td>
<td> <input name="codigos" type="checkbox" value=".$datos["codigo"]." /> </td>
</tr> ";
}
echo "</table>
Valora esta pregunta


0