[eluser]tonanbarbarian[/eluser]
most of the form helpers can have arrays of data passed to them
so to create an image submit use something like the following
Code:
form_submit(
array(
'name'=>'submit',
'value'=>'submitted',
'type'=>'image',
'src'=>'img/submitbutton.png',
'id'=>'my_submit',
'onclick'=>'return myformclick();'
)
);
this will produce something similar to this
Code:
<input name="submit" value="submitted" type="image" src="img/submitbutton.png" id="my_submit" onclick="return myformclick();" />
so the example shows how you can do both image submit and onclick using the form_submit helper function