MyBB Community Forums

Full Version: Changed input to button, causing issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I changed the <input> for submit, preview post and save as draft to <button> so I would have more versatility on the text inside. So now I have something like this:

<button type="submit" class="submit_link secondary_post_link" name="previewpost" tabindex="5"/><i class="icon-eye-open"></i> Preview Post</button>{$savedraftbutton}

Problem is, the links all submit the thread now. Any way to solve this without turning them back into inputs?
This seemed to work for me:

 <button type="submit" class="btn" input="submit" name="submit" tabindex="4" accesskey="s">
    <i class="icon-circle-arrow-right icon-large"></i>
        Submit           
   </button>
  <button type="submit" class="btn" name="previewpost" value="Preview Post" tabindex="5">
    <i class="icon-circle-arrow-left icon-large"></i>
        Preview          
    </button>
Seems the error was caused by having no value. Thanks!