Skip to content Skip to sidebar Skip to footer

$_post Not Passing Any Variables

I am constructing a advanced login system for one of my new projects, however the problem i am having is in the simplest part. the posted form data. The data from which is not bein

Solution 1:

The reason is that PHP uses the name attribute. if your input is name = 'test' that in PHP it would be $_POST['test']

Solution 2:

I would change

if(isset($user_request)){

to

if(isset($user_request['inputEmail'], $user_request['inputPassword'])){

And also put an exit statement in the if-body to be sure the code ends where you expect it to. That header Location may happen so fast you don't see it.

Post a Comment for "$_post Not Passing Any Variables"