githinji84
Member
Hi guys,
I am trying to get data from a text area to perform php validation to confirm that the input is correct before the form is submitted.
I am fetching the data from the textarea using this code as string but I keep getting the default i.e. empty string even when the text area has text
$reason_for_decline = $app->input->get('invoice_central__reason_for_decline','','string');
Do I have the syntax wrong here. When I use var_dump() on this variable I get string(0) ""
Regards
Simon
I am trying to get data from a text area to perform php validation to confirm that the input is correct before the form is submitted.
I am fetching the data from the textarea using this code as string but I keep getting the default i.e. empty string even when the text area has text
$reason_for_decline = $app->input->get('invoice_central__reason_for_decline','','string');
Do I have the syntax wrong here. When I use var_dump() on this variable I get string(0) ""
Regards
Simon