Form Building

Forum
Last Post
Threads / Messages
Well you can create/edit a form in a view class file(located at /view folder or admincp/view folder), and use Mysidia's Form or FormBuilder class. Below is an example of how to use the form builder:

PHP:
$form = new FormBuilder("login", "", "post"); 
$form->buildComment("username: ", FALSE) 
     ->buildTextField("username") 
     ->buildComment("password: ", FALSE) 
     ->buildPasswordField("password", "pass", "", TRUE) 
     ->buildButton("Submit", "submit", "submit");

The above example creates a login form, similar to Mysidia's login form. You can look into the file class_form.php and class_formbuilder.php to see what methods these classes have for you to create a form dynamically.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top