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


Showing 1 to 10 of 73 entries

# Id First name Last name Address City State Zip Actions
1 118 gg fff fff ff fff fff
2 119 k k 51.81540652378574,-0.9777835937499924 k k k
3 32 Quinn Wiley P.O. Box 599, 2455 Accumsan Avenue Centennial SC 61389
4 33 Kameko Cox 181-6497 At Rd. Nenana AK 45163
5 34 Brody Mccarty P.O. Box 588, 4717 Tellus. Street Vicksburg NJ 67362
6 35 Lana England 576-4991 Enim Av. Johnstown FL 72504
7 36 Cassandra Graves 1951 Turpis. Street Dickinson MS 14187
8 37 Nicholas Brock 222-910 Amet Rd. Tonawanda IA 04308
9 38 Kuame Huffman 793-1081 In, Av. South El Monte MA 80857
10 39 Xenos Clarke 437-3387 Arcu Road Newburgh NV 05780
# Id First name Last name Address City State Zip Actions