[SOLVED] - Strange problem with POST data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: [SOLVED] - Strange problem with POST data (/showthread.php?tid=77603) |
RE: Strange problem with POST data - demyr - 09-27-2020 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'); RE: Strange problem with POST data - nc03061981 - 09-27-2020 Your code is correct but why you can not receive post data? RE: Strange problem with POST data - Matleyx - 09-28-2020 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? RE: Strange problem with POST data - nc03061981 - 09-28-2020 Set public $indexPage = ''; RE: Strange problem with POST data - Matleyx - 09-28-2020 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? RE: [SOLVED] - Strange problem with POST data - InsiteFX - 09-29-2020 Just contribute back to the CodeIgniter community, to help others. |