Código Javascript:
Ver original
<script> function edi_ap() { var id_aviso = 0; var elements = document.getElementsByName('apa'); for(var x=0;elements[x];x++){ if(elements[x].checked){ id_aviso = elements[x].value; break; } } window.location.href="actualizar_aviso1.php?id=" +id_aviso; } </script>
Código Javascript:
Ver original
<body> <div id="aparato"> <table width="100%" id="data"> <thead> <tr> <tr> </tr> <?php do { ?> <tr> <th><input name="apa" type="checkbox" value="<?php echo $row_ap_usuarios['id_aviso']; ?>"/></th> </tr> <?php } while ($row_ap_usuarios = mysql_fetch_assoc($ap_usuarios)); ?> </thead> </table> </div> <input type="submit" name="button" id="button" value="Editar" onclick="edi_ap();" /> </body> </html>