<?php session_start(); $dcto = (isset($_POST['dcto'])) ? $_POST['dcto'] : ''; $fecha = (isset($_POST['fecha'])) ? $_POST['fecha'] : ''; $lote = (isset($_POST['lote'])) ? $_POST['lote'] : ''; $cliente = (isset($_POST['cliente'])) ? $_POST['cliente'] : ''; $ubicacion = (isset($_POST['ubicacion'])) ? $_POST['ubicacion'] : ''; $planilla = (isset($_POST['planilla'])) ? $_POST['planilla'] : ''; $_SESSION['dcto'] = $dcto; $_SESSION['fecha'] = $fecha; $_SESSION['lote'] = $lote; $_SESSION['cliente'] = $cliente; $_SESSION['ubicacion'] = $ubicacion; $_SESSION['planilla'] = $planilla; $data = 1; print json_encode($data);