[eluser]Rok Biderman[/eluser]
Well, since submit is generally useless without a form, you might as well use the form helper and do the
Code:
$this->load->helper('form');
echo form_open('do/something');
echo form_input('username', 'johndoe');
echo form_submit('submitbutton', 'Submit Post!');
echo form_close();
This solves it and adds a csrf hidden field as well for added security (if configured). Now I know that isn't exactly the answer to your question (toopay answered that), but you have no use for submit without a form in the first place. If you did, for a jquery ajax request or such, you could easily bind it to any element, it wouldn't have to be type submit.