Welcome Guest, Not a member yet? Register   Sign In
Form with POST return null
#1

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]
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'));


    } 
Reply


Messages In This Thread
Form with POST return null - by Perhood - 11-23-2018, 03:46 AM
RE: Form with POST return null - by InsiteFX - 11-23-2018, 09:12 AM
RE: Form with POST return null - by Perhood - 11-26-2018, 01:24 AM
RE: Form with POST return null - by NiteRaven - 11-26-2018, 08:11 PM
RE: Form with POST return null - by Perhood - 11-27-2018, 01:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB