![]() |
#1
|
||||
|
||||
![]()
Working here with v1.3.4, and I'm trying to recreate this, basically:
Code:
<form id="gamescore" action="" method="post"> <input type="hidden" value="100" name="amount" /> <button class="btn btn-default" id="sendtest">Click!</button> </form> I see FormBuilder() working here: PHP Code:
The first variable in FormBuilder() seems to be the form's id, and the last one is the method. The middle seems to be the action, but that's not a php page it's linking to, that's just a mere word?? So I'm guessing FormBuilder automatically tacks on the .php extension, and, in that case, the form's action location is the one just in the root folder, not one inside classes. Is this right? Minimum, what do I need to set up a page in the root to run a function? Specifically something like~ PHP Code:
The second question is harder, as I need to create an input field with type="hidden". I assume a type="text" is what has now become ->buildTextField, so what is the equivalent for hidden input fields? Note that I also need the FormBuilder() to add on class and id attributes to the button, too, please? I'd also like insight on how to add classes to various things in Mysidia through the architecture given to us, rather than having to hack it in later with jQuery.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 07-04-2014 at 08:15 AM. |
Tags |
formbuilder |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with the class controller | Isura | Questions and Supports | 4 | 04-09-2014 03:21 PM |
Problem: smarty class 1.3.4 | draugluin | Questions and Supports | 8 | 11-15-2013 02:29 AM |
Critical Errors (PDO Class not Found) | LucasA33 | Questions and Supports | 2 | 11-21-2012 05:38 PM |
What's New? |
What's Hot? |
What's Popular? |