Hello,
I made those changes in the validation class but still I am getting following notices for Check Box and List Box with multiple values selected.
A PHP Error was encountered
Severity: Notice
Message: Undefined index: cash_codes
Filename: libraries/MY_Input.php
Line Number: 132
My Smarty template code for the check box is
<input type=“checkbox” name=“cash_codes” id=“cash_codes” <!—[if $CASH_CODES_ONLY == “on” ]—>checked<!—[/if]—>>Cash Codes Only
//This is my second check box
<input type=“checkbox” name=“summary_flag” id=“summary_flag”>Summary</td>
Both the check boxes are single and independent.
My code for the list box with multiple selection is as given below.
<select name=“txn_code_list[]” id=“txn_code_list” value=”” multiple=“multiple” size=“15” style=“width:200px”>
<!—[foreach item=RESULT from=$RESULTS]—>
<option value=”<!—[$RESULT.transaction_code]—>”><!—[$RESULT.transaction_code]—> <!—[$RESULT.description]—></option>
<!—[/foreach]—>
</select>
It gives following notice.
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: libraries/MY_Validation.php
Line Number: 552
This is my code in controller
$product_code = $this->input->post(‘product_code’);
$summary_flag = $this->input->post(‘summary_flag’);
$user_id_list = $this->input->post(‘user_id_list’);
Can you please guide me how to solve this errors with out suppressing them.
Thank you…