![]() |
|
#2
|
||||
|
||||
|
I like to use forms the same way it's used in registerview.php. I find it more simple and I think it's a good example.
Unless it's ajax, you don't need to have the action code in a different function at all: In registerview.php you will notice this line: $securityField->add(new Button("Register", "submit", "submit")); The form is sending through POST and you might notce the "submit" in the button above: if($mysidia->input->post("submit"){ //means the button was clicked, check sent data here } And all inputs can be checked like that: $requiredField->add(new TextField("username")); $mysidia->input->post("username");//in register.php --- You want a class in the classes folder or to create a new page?
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 07-04-2014 at 03:50 PM. |
| Tags |
| formbuilder |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with the class controller | Isura | Questions and Supports | 4 | 04-09-2014 04:21 PM |
| Problem: smarty class 1.3.4 | draugluin | Questions and Supports | 8 | 11-15-2013 03:29 AM |
| Critical Errors (PDO Class not Found) | LucasA33 | Questions and Supports | 2 | 11-21-2012 06:38 PM |
What's New? |
What's Hot? |
What's Popular? |