How to use <button> tags within MyBB forms?
Destro Offline
Junior Member
**
Posts: 39
Joined: Nov 2012
Post: #1
How to use <button> tags within MyBB forms?
Hello.

I've some trouble in using <button> tags within MyBB forms.

For example :

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
<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 Frown When click  to the Preview button, it will do post thread process Smile

I don't know which file where I can handle the preview process in MyBB. I found in the "newthread.php"

Code:
$mybb->input['action'] == "previewpost"


But I don't know what it do exactly...


Thanks for your reading.

04-27-2013 03:21 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
How to use <button> tags within MyBB forms? - Destro - 04-27-2013 03:21 AM

 Standard Tools
Forum Jump: