You can set some default value of field in insert form. For example, in your table, you may have field name created by, which you don't want to fill by user (instead this you want this to be logged in user id) but you want to save that value in table.
$pdocrud = new PDOCrud(); $pdocrud->formFieldValue("customer_id", "1");//set some default value for customer Id //or you can entirly hide that field also //$pdocrud->fieldHideLable("customer_id"); //$pdocrud->fieldDataAttr("customer_id", array("style"=>"display:none")); $pdocrud->fieldDataAttr("customer_id", array("disabled"=>"disabled")); $pdocrud->formFields(array("customer_id","order_amount","order_date","payment_method")); echo $pdocrud->dbTable("ordertable")->render("insertform");