//error_reporting(E_ALL ^ E_NOTICE); require_once 'class/class.php'; $datos = new Prueba(); $id_usuario = isset($_GET['id_usuario']) ? $_GET['id_usuario'] : null; $nombres = isset($_GET['nombres']) ? $_GET['nombres'] : null; $apellidos = isset($_GET['apellidos']) ? $_GET['apellidos'] : null; $op = isset($_GET['op']) ? $_GET['op'] : null; if (isset($op) and $op == "del") { $datos->delUsuario($id_usuario); } if (isset($op) and $op == "Editar") { $datos->updateUsuario(); } if (isset($nombres) && isset($apellidos)) { $datos->addUsuario(); } ?> <html> <head> <title> Usuarios </title> </head> <body> <h1>Usuarios</h1> <form method="GET" action="index.php"> <label>Nombres</label><input type="text" name="nombres"> <label>Apellidos</label><input type="text" name="apellidos"> <input type="submit" value="Insertar"> </form>