G
Greg Russell
This seems more like an html issue than javascript, but I'm experiencing the
failure of an onclick event when it's placed within a form, and would very
much appreciate some insight into solving the problem, please.
The onclick event works properly if there is no <form> structure around it,
but within the form, it invokes the delete.php form action rather than the
intended update.php; the checkboxes and submit button wrt delete.php work
properly:
<form name="multiple_delete" method="POST"
action="delete.php?table=transactions">
<input type="submit" name="Submit" value="Delete checked transactions">
<table class="sortable" cellspacing="1" border="1">
....
<td>
<input type="checkbox" name="ud_id[]" value="37">
</td>
<td align="center" style="cursor
ointer;">
<input type="image" src="./images/edit.png" name="update" value="37"
onclick="location.href='./update.php?table=transactions&ud_id=37'">
</td>
....
</table>
</form>>
failure of an onclick event when it's placed within a form, and would very
much appreciate some insight into solving the problem, please.
The onclick event works properly if there is no <form> structure around it,
but within the form, it invokes the delete.php form action rather than the
intended update.php; the checkboxes and submit button wrt delete.php work
properly:
<form name="multiple_delete" method="POST"
action="delete.php?table=transactions">
<input type="submit" name="Submit" value="Delete checked transactions">
<table class="sortable" cellspacing="1" border="1">
....
<td>
<input type="checkbox" name="ud_id[]" value="37">
</td>
<td align="center" style="cursor
<input type="image" src="./images/edit.png" name="update" value="37"
onclick="location.href='./update.php?table=transactions&ud_id=37'">
</td>
....
</table>
</form>>