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

# Id First name Last name Address City State Zip Actions
1 50 Nolaιεθρθθ Rojasgghhhξσξσηηδ Ap #185-9503 Sed Drive Juneau NH 77099
2 51 Talon Rowland 4575 Massa. Street Marquette IN 37429
3 52 Cheryl Bowers 1348 Ut Rd. Hutchinson IL 44144
4 53 Bree Gaines Ap #190-9800 Facilisi. Rd. Bowling Green ME 623918
5 56 Jasper Santiago 2990 Malesuada Rd. Williamsport IL 00409
6 57 Hilary Conner 2000 Diam. Rd. Roanoke MN 50683
7 58 Zena Fox 9604 Dolor Road Palm Springs WA 93143
8 59 Britanni Schmidt 485-6357 Dictum Road Bradbury VT 48121
9 60 Cale Lynn Ap #318-2121 Sapien Rd. Kettering MS 74815
10 61 Madeson Robbins P.O. Box 690, 861 Magna. Avenue Bismarck MN 37748
# Id First name Last name Address City State Zip Actions