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

# Id First name Last name Address City State Zip Actions
1 44 Cecilia Carney3 3243 Lorem Avee Shawnee Tamilnadu 22241
2 45 Connor Marquez 5263 Purus Ave Lockport Tamilnadu 40334
3 46 Gillian Kirk P.O. Box 570, 1525 Magna Av. Ada Tamilnadu 30771
4 47 Wallace c Gillespie 550-2279 Tellus, Ave Missoula WA 96349
5 48 Risa Ayers Ap #948-9845 Mi Avenue Pass Christian OH 72881
6 49 Callum Solomon 178-516 Ultrices. Rd. Fall River MD 03691
7 50 Nola Rojas Ap #185-9503 Sed Street Juneau NH 77099
8 51 Talon Rowland 4575 Massa. Street Marquette IN 37429
9 52 Cheryl Bowers 1348 Ut Rd. Hutchinson IL 44144
10 53 Bree Gaines Ap #190-9800 Facilisi. Rd. Bowling Green ME 62391
# Id First name Last name Address City State Zip Actions