2013-04-25, 03:14 PM
Hello.
I've some trouble in using <button> tags within MyBB forms.
For example :
<form action="newthread.phpXXXX">
...
<button name="submit" type="submit">
<span>Post Thread</span>
</button>
<button name="previewpost" type="submit">
<span>Preview Post</span>
</button>
...
</form>
And you will know what happen When click to the Preview button, it will do post thread process
I don't know which file where I can handle the preview process in MyBB. I found in the "newthread.php"
But I don't know what it do exactly...
Thanks for your reading.
I've some trouble in using <button> tags within MyBB forms.
For example :
<form action="newthread.phpXXXX">
...
<button name="submit" type="submit">
<span>Post Thread</span>
</button>
<button name="previewpost" type="submit">
<span>Preview Post</span>
</button>
...
</form>
And you will know what happen When click to the Preview button, it will do post thread process
I don't know which file where I can handle the preview process in MyBB. I found in the "newthread.php"
$mybb->input['action'] == "previewpost"
But I don't know what it do exactly...
Thanks for your reading.