FILTER_FLAG_STRIP_LOW)));//limpia texto $nombre = trim(filter_input(INPUT_POST, "nombre", FILTER_SANITIZE_STRING,array('flags' => FILTER_FLAG_STRIP_LOW)));//limpia texto $pag_base = trim(filter_input(INPUT_POST, "pag", FILTER_SANITIZE_STRING,array('flags' => FILTER_FLAG_STRIP_LOW)));//limpia texto $stmt = $pdo->prepare('Select * from fu_sistema(:id, :nombre, :desc, :pag)'); $stmt->bindParam(":id", $id); $stmt->bindParam(":nombre", $nombre); $stmt->bindParam(":desc", $desc); $stmt->bindParam(":pag", $pag_base); if(!$stmt->execute()){ header("Location:".$pag."?error=2"); exit(); } $stmt->closeCursor(); $stmt = null; header("Location: ".$pag."?ok=1"); exit(); ?>