Non-image submit button doesn't work
Posted: Sat Sep 04, 2004 2:48 pm
Original html with image buttons, which work perfectly:
I'm in process of changing all images to standard html buttons, however, when I change the code (below), the submit button doesn't submit the form, but the delete button still works.
Is there an alternative way to do standard html buttons?
Code: Select all
<td>
<input type=image src="images/buttons/submit.gif" name='create' onClick="return return_script()";>
</td>
<td>
<input type=image src="images/buttons/delete.gif" name='delete' onClick="return confirm('Are you sure you want to delete this?')";>
</td>Code: Select all
<td>
<input type=submit value='submit' name='create' onClick="return return_script()";>
</td>
<td>
<input type=button value='delete' name='delete' onClick="return confirm('Are you sure you want to delete this?')";>
</td>