[SOLVED] - Strange problem with POST data |
If your method name on Controller is both for get and post, then you should define them on your Route :
PHP Code: $routes->match(['get', 'post'],'/signup', 'MySiteController::signup');
Your code is correct
but why you can not receive post data? Learning CI4 from my works, from errors and how to fix bugs in the community Love CI & Thanks CI Teams
GUYS!!!!!!
Pheraps the problem was in .htaccess. I removed the file, put index.php in the url, and the post data are arrived!!!! Now: In the config/app.php: PHP Code: public $baseURL = 'http://192.168.10.200'; Route.php: PHP Code: /** .htaccess renamed to.htaccessXXX. In this mode, now, it's work, but...... how i set my htaccess and remove the index.php in my url?
Set public $indexPage = '';
Learning CI4 from my works, from errors and how to fix bugs in the community Love CI & Thanks CI Teams
NOW IT'S WORK!!!!!!!!!!!
In all my test, i don't remember that, in the new installation, i not enable mod_rewrite apache!!!!! i'll perform other tests now, but i think the problem is solved... THANKS A LOT TO EVERYONE HOW CAN I OFFER YOU A BEER FOR THE HELP YOU HAVE GIVEN ME? |
Welcome Guest, Not a member yet? Register Sign In |