36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<!-- deteksi_sentimen.php -->
|
|
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Deteksi Sentimen</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<section class="sentiment" id="sentimen">
|
|
<div class="form-container">
|
|
<h2>Deteksi Sentimen Ulasan</h2>
|
|
<p class="subtitle">Aplikasi: <strong>Zeopoxa Running</strong></p>
|
|
|
|
<form action="proses_sentimen.php" method="POST">
|
|
<input type="text" name="ulasan" placeholder="Masukkan kata atau kalimat ulasan..." required>
|
|
<button type="submit">Proses</button>
|
|
</form>
|
|
|
|
<?php if (isset($_GET['hasil']) && isset($_GET['ulasan'])): ?>
|
|
<div class="hasil-box">
|
|
<label for="hasilUlasan">Hasil Deteksi Sentimen:</label>
|
|
<div class="hasil-text" id="hasilUlasan">
|
|
<strong><?= htmlspecialchars($_GET['ulasan']) ?></strong> termasuk kalimat sentimen <strong><?= htmlspecialchars($_GET['hasil']) ?></strong>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<a href="index.php" class="back-link">← Kembali ke Landing Page</a>
|
|
</div>
|
|
</section>
|
|
</body>
|
|
</html>
|