thank you ecartz
I am now trying to change the form
I have
Code: Select all
<?php echo tep_draw_form('partsfilter', 'parts_products.php', 'action=assign_products&parent_id='.$parent_id.'&parts_category_id='.$parts_category_id.'&page='.(empty($_REQUEST['page'])), 'post');?>
and I tried
Code: Select all
<?= $form = new Form('partsfilter', 'parts_products.php', 'action=assign_products&parent_id='.$parent_id.'&parts_category_id='.$parts_category_id.'&page='.(empty($_REQUEST['page'])), 'post', phoenix_normalize($parameters)); ?>
However this gives me these notices
Notice: Undefined variable: parameters in C:\wamp64\www\partsfinderpro\admin\parts_products.php on line 122
Fatal error: Uncaught TypeError: Argument 4 passed to Form::__construct() must be of the type array, string given, called in C:\wamp64\www\partsfinderpro\admin\parts_products.php on line 122 and defined in C:\wamp64\www\partsfinderpro\includes\system\versioned\1.0.8.1\form.php on line 27
TypeError: Argument 4 passed to Form::__construct() must be of the type array, string given, called in C:\wamp64\www\partsfinderpro\admin\parts_products.php on line 122 in C:\wamp64\www\partsfinderpro\includes\system\versioned\1.0.8.1\form.php on line 27
I am also not sure what this piece of code actually does