Topic: How To Retrieve Request Payload Custom Form In FA
i want to create custom form, but i cant retrieve the request by method POST/GET, the request always use ajax JsHttpRequest.
how to change method request used PHP POST method?
this my script:
start_form(true);
start_table(TABLESTYLE_NOBORDER);
start_row();
date_cells(_("From:"), 'FromDate');
date_cells(_("To:"), 'ToDate');
banking_types_list_cells(_("Banking Type:"), "BankingType");
submit_cells('SubmitLogin', _("Login iBanking"), true, '', 'default');
end_row();
end_table();
end_form();
i use this for retrieve:
if(get_post('SubmitLogin') || isset($_POST['SubmitLogin']) || isset($_GET['SubmitLogin']))
and i try use this too:
json_decode(file_get_contents('php://input'), true);
but the both still can't retrieve.
thanks
ardy