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();
                                

Employee

Showing 1 to 10 of 82 entries

# Id First name Last name Address City State Zip Actions
1 22 Stone Kirkland P.O. Box 686, 9425 Morbi Road Colorado Springs UT 93246
2 23 Edward Burton 5310 Vel, Avenue Harrisburg AK 15122
3 24 Adam Ramsey 6383 Euismod Road Fulton AZ 14148
4 26 Abraham Beasley 1146 Scelerisque, Road Pierre WV 10668
5 27 Kerry Grant P.O. Box 613, 193 Nullam St. Bloomington MN 59983
6 28 Wyoming Sullivan 9747 Volutpat Road Auburn Hills OR 85244
7 29 Reese Singleton 7322 Sagittis. Av. Schaumburg WY 97495
8 30 Rosalyn Spencer P.O. Box 296, 6612 Est. Ave Eatontown WV 88032
9 31 Shelby Cohen P.O. Box 196, 4793 Volutpat. Rd. Basin IA 03952
10 122 Felipe Villamil Calle 64 3B-52 Bogota Cundinamarca 00000
# Id First name Last name Address City State Zip Actions