Input.php library cleaning value from $_POST, CI3.1.13 |
Hello,
It seems like you’re encountering an issue where the layout[] field values are not being captured in the $_POST array after upgrading to PHP 8.1 and CI3.1.13. This could be due to several reasons, including changes in how PHP handles form data or updates in the CodeIgniter framework that affect the Input.php library. Ensure that all your code is compatible with PHP 8.1. There have been many changes and deprecations from PHP 5.6 to 8.1, which might affect how arrays are handled. Look through the changelog for CodeIgniter versions 3.1.12 and 3.1.13 to see if there were any changes made to the Input.php library that could have affected the handling of $_POST data. Use PHP’s var_dump() or print_r() functions to print out the contents of $_POST at various points in your script to see where the data might be getting lost. As a workaround, you might consider using the php://input stream to parse the raw data from the request manually. This is especially useful if the content type of the request is not application/x-www-form-urlencoded or multipart/form-data. |
Messages In This Thread |
Input.php library cleaning value from $_POST, CI3.1.13 - by surjitkmr - 08-17-2023, 11:44 PM
RE: Input.php library cleaning value from $_POST, CI3.1.13 - by ericcormier - 12-10-2023, 09:56 PM
RE: Input.php library cleaning value from $_POST, CI3.1.13 - by betty4920taylor - 04-18-2024, 11:22 PM
|