Page 1 of 1

Non-image submit button doesn't work

Posted: Sat Sep 04, 2004 2:48 pm
by voltrader
Original html with image buttons, which work perfectly:

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>
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.

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>
Is there an alternative way to do standard html buttons?

Posted: Sat Sep 04, 2004 6:57 pm
by nigma
think it's the semi-colon that's outside the double quotes on this line:
<input type=image src="images/buttons/submit.gif" name='create' onClick="return return_script()";>
but I know nothing.

Posted: Tue Sep 07, 2004 11:27 am
by voltrader
That didn't do the trick, unfortunately.

Does the type=image act as type=submit or type=button?

Posted: Tue Sep 07, 2004 11:30 am
by feyd
both should be submits.