2 lines of code and you will have your form ready!
$form = new FORM_PK('login');
$form->pk_diventi('TITLE','SUBTITLE','img/logo.png','SLOGAN','#','post');
TITLE
SUBTITLE
SLOGAN
FUNCTION
$obj->pk_diventi($title, $subtitle, $path_img, $slogan, $action = ‘#’, $method = ‘post’, array $exclude = array())
PARAMETERS
$title / $subtitle / $path_img / $slogan:
If you don’t want to insert one or more of these parameters, just put an empty string = ”;
$action: landing page where you will insert the $obj= new RENDER_PK(‘table’)
$method: POST of GET
array $exclude: db fields you want to exclude from the form.
ADVACED OPTION
$obj->pk_diventi($title, $subtitle, $path_img, $slogan, $action = ‘#’, $method = ‘post’, array $exclude = array(), $background_color = ‘aliceblue’, array $style = array(‘placeholder’, ‘m’, 12), $class = 4, $param = ”, $card_color = ‘white’, $size_logo = 100)
PARAMETERS ADVANCED OPTIONAL
$background_color = color background (rgb,esadex or name color)
array $style = array(‘placeholder’, ‘m’, 12)
1 – ‘placeholde’, ‘span’ , ‘float’ or ‘label’ = input box style
2 – size input box
3 – length input box
$class = 4
1 to 5 different layout styles
$card_color = color card (rgb,esadex or name color)
$size_logo = size logo in px
ES. advaced customizable
$form = new FORM_PK('login');
$form->pk_diventi(
'TITLE',
'SUBTITLE',
'img/logo.png',
'SLOGAN',
'login.php',
'post',
array('user'),
'#9DD8C0',
array('float','s',6),
4,
'',
'aliceblue',
50
);
TITLE
SUBTITLE