User gives me a $_POST
, I want to check whether keys (not the values) are there.
$_POST
keys need to be newemail
, firstPassword
and secondPassword
.
What I have tried:
if (in_array(array_keys($_POST), array("newemail", "firstPassword", "secondPassword"))) echo "Everything in order".
.
How to make it actually work?