1
Hi everyone! i'm developing a small website and i'm trying to create a pdf but there is a problem with the $_POST data: take a look

$array = json_decode($_POST['oculto']);
$fecha_compra=date("Y-m-d");
$hora=new DateTime();
$hora->setTimezone(new DateTimeZone('America/Bogota'));

$hora=$hora->format('H:i:s');
$usuario=$_POST['sel_usuario'];

it says "undefined index" of $array and $usuario but they have data! how can be this possible?
Thanks for your help!
avatar