11-23-2018, 03:46 AM
Hi ,
I have a form with methop post it send the data from the form when put input, but when I do the
$request->getPost('idiomas') it returns a null.
I have tried with method get and it works but I need to do it in post.
This what the headers infow show me
![[Image: Inspector.png]](https://image.ibb.co/m9EbnA/Inspector.png)
This is how I create the route
And this is the form in html
This is the edit function
I have a form with methop post it send the data from the form when put input, but when I do the
$request->getPost('idiomas') it returns a null.
I have tried with method get and it works but I need to do it in post.
This what the headers infow show me
![[Image: Inspector.png]](https://image.ibb.co/m9EbnA/Inspector.png)
This is how I create the route
PHP Code:
$routes->post('{locale}/app/admin/edit', 'Editor::edit', ['namespace' => 'App\Controllers\Appmudet\Admin']);
And this is the form in html
Code:
<form action="/es/app/admin/edit" method="post">
This is the edit function
PHP Code:
public function edit(){
var_dump($this->request->getPost('idiomas'));
}