Form Fields Separate form fields for insert and edit form (Addded in v 3.3)

Now you can define the separate form fields for insert and edit forms. As you know, formFields function is used to set both insert and edit form fields but if you want separate fields for the edit form, you can use editFormFields function to define the fields for edit form. If editFormFields function is not defined then formFields function fields will be used for insert and edit form like previously.

  
                                $pdocrud = new PDOCrud(); 
                                //set which form fields to display. It sets fields for both insert and edit form.
                                $pdocrud->formFields(array("first_name","last_name","Address")); // function to set form fields in both insert and edit
                                //If you want seperate fields for edit form then insert form, you can set using below function. 
                                $pdocrud->editFormFields(array("first_name","Address"));//added in v 3.3

                                echo $pdocrud->dbTable("employee")->render();
                                

Deprecated: Required parameter $field follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $task follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $totalrecords follows optional parameter $page in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudHelper.php on line 191

Employee

Showing 1 to 5 of 94 entries

# Id First name Last name Address City State Zip Actions
1 11 Susan Floyd less 2138 Mauris Rd. Kent SD 94619
2 12 Ocean Welch Ap #328-4231 Aliquam Ave Durango MN 34848
3 13 Olympia Reid Ap #119-6421 Vulputate St. Laconia AL 42649
4 14 Leigh Madden 1134 Commodo St. Jeannette IN 64702
5 15 Jenna Sims Ap #188-3087 Semper Rd. White Plains CO 51000
# Id First name Last name Address City State Zip Actions