Change submit button to image in form
Posted: Mon Apr 23, 2007 6:42 am
I have a form that works fine using the submit button but I wanted to change the submit button to an image.
This works fine.
When I change the type to 'image' the submit button is replaced by the image but it stops working...it doesn't post the id value anymore?
This works fine.
Code: Select all
array ('value' => "<form action='orders.php' method='post' name='delete' id='delete'>
<input type='hidden' name='id' id='id' value='".$order_values['order_id']."'>
<input name='delete' type='submit' id='delete' value='End Item' ></form>"),Code: Select all
array ('value' => "<form action='orders.php' method='post' name='delete' id='delete'>
<input type='hidden' name='id' id='id' value='".$order_values['order_id']."'>
<input name='delete' type='image' src='images/icons/delete.gif' alt='Delete Order' id='delete' ></form>"),