(09-24-2020, 08:53 AM)InsiteFX Wrote: In the first place your form tag is wrong it goes by controller/method.
PHP Code:
<form action="<?= base_url('test/index');?>" method="post">
Also you should not be using the index method post data use another method.
The index method is always ran when the controller is initialized.
Hi Insite, Thanks for the help.
In my view, now, there isn't index method. If you look my last post, there is "home/test". Is it wrong?
I whant that, when i submit the form, the app going to the method "test" in "home" controller, whith the post data.
In route.php i put "$routes->post(etc etc)". Is it right?
When i use CI3, i don't put anything in route, i have autoroute enable. I don't understand where is the problem whith ci4....