$mensaje = ""; $categoria = ""; $cod_coment = ""; $id_noticias = "id"; $fecha_coment = ""; $comentario = ""; $nombre = ""; $noticias = $_REQUEST["id"]; if (isset($_REQUEST["Comentar"]) && $_REQUEST["Comentar"] == "Comentar") { //entrego los datos $clase->id_noticias = $_REQUEST["id"]; $clase->fecha_coment = date("Y-m-d"); $clase->desc_coment = $_REQUEST["comentario"]; $clase->nombre = $_REQUEST["nombre"]; //llamar a funcion guardar if ($clase->guardar_comentario()) { $mensaje = "Registro Realizado con Exito"; } else { $mensaje = "A Fallado su Registro"; } } ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTG-8"> <title>La voz de la verdad</title> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <link rel="stylesheet" href="estilos.css"> <link rel="stylesheet" href="fonts.css">