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 70 entries

# Id First name Last name Address City State Zip Actions
1 33 Kameko Cox 181-6497 At Rd. Nenana AK 45163
2 34 Brody Mccarty P.O. Box 588, 4717 Tellus. Street Vicksburg NJ 67362
3 35 Lana England 576-4991 Enim Av. Johnstown FL 72504
4 36 Cassandra Graves 1951 Turpis. Street Dickinson MS 14187
5 37 Nicholas Brock 222-910 Amet Rd. Tonawanda IA 04308
6 38 Kuame Huffman 793-1081 In, Av. South El Monte MA 80857
7 39 Xenos Clarke 437-3387 Arcu Road Newburgh NV 05780
8 40 Cooper Jensen P.O. Box 138, 4309 Non Rd. Opelousas VA 93062
9 41 Deacon Tyson 156-1937 Ultrices Rd. Spokane Valley FL 76778
10 42 Dawn Potter 8472 Pellentesque Rd. Chesapeake OH 66729
# Id First name Last name Address City State Zip Actions