Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/01/2008, 21:00
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Re: Ayuda con CheckBox como matriz

Probá con algo así:
Código PHP:
<form id="form1" name="form1" method="post" action="">
<
table>
<
tr>
<
td><input type="checkbox" name="lista"></td>
<
td><input type="button" name="Submit2" value="desmarcar" onclick="this.parentNode.parentNode.getElementsByTagName('input')[0].checked=0;" /></td>
<
td><input type="button" name="Submit" value="marcar" onclick="this.parentNode.parentNode.getElementsByTagName('input')[0].checked=1;" /></td>
</
tr>
<
tr>
<
td><input type="checkbox" name="lista"></td>
<
td><input type="button" name="Submit2" value="desmarcar" onclick="this.parentNode.parentNode.getElementsByTagName('input')[0].checked=0;" /></td>
<
td><input type="button" name="Submit" value="marcar" onclick="this.parentNode.parentNode.getElementsByTagName('input')[0].checked=1;" /></td>
</
tr>
<
tr>
<
td><input type="checkbox" name="lista"></td>
<
td><input type="button" name="Submit2" value="desmarcar" onclick="this.parentNode.parentNode.getElementsByTagName('input')[0].checked=0;" /></td>
<
td><input type="button" name="Submit" value="marcar" onclick="this.parentNode.parentNode.getElementsByTagName('input')[0].checked=1;" /></td>
</
tr>
</
table>
</
form
Por las dudas: los input type image son equivalentes a botones tipo submit, quizás te convenga reemplazarlos por imágenes normales.