What could be the reasons for that, then after sending the form in $ _POST - empty? And how to find these reasons?

<form method="post" action="<?=$arParams['CONFIRM_URL']?>" name="regform" enctype="multipart/form-data"> 

This is a string from the bitix component template. There is nothing after sending this form to the POST.

  • though not in bitrix, but in cakephp under IIS there was a recently empty request when the file size exceeded the maximum size of the downloaded file in the php.ini settings (2 MB by default). - teran
  • one
    first, make sure in the Browser Tools that the request is sent exactly with the necessary data, i.e. that they are definitely going to the server in the right composition - teran
  • 2
    what you added to the form header says nothing about what is sent inside there, but only tells us that the form really should be sent using the POST method. - teran

1 answer 1

$ _POST may be empty due to CSRF protection.

 <form method="post" action="<?=$arParams['CONFIRM_URL']?>" name="regform" enctype="multipart/form-data"> <!-- другие поля --> <?=bitrix_sessid_post();?> </form>