<?php

//Inicio del procesamiento
session_start();
include 'teatro2.php';
$usuario_nombre = $_POST['username'];
$usuario_clave = $_POST['password'];
$teatro = new teatro();
$datos = $teatro->datos_usr($usuario_nombre, $usuario_clave);
if ($datos) {
    echo $datos;
    $_SESSION['login'] = true;
    $_SESSION['usuario'] = $usuario_nombre;
} else {
    $_SESSION['login'] = false;
}
$teatro->_teatro();
header('Content-type: text/html; charset=utf-8');
?>

<HTML>
<HEAD><TITLE>Práctica-Teatros</TITLE>
   <STYLE  TYPE="text/css">
   <!--
	input
	{
	  font-family : Arial, Helvetica;
	  font-size : 14;
	  color : #000033;
	  font-weight : normal;
	  border-color : #999999;