
<?php
include("XGF34.php"); #<- Kita ngeimport ini
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<style>
        /* Container for the form and image */
        .container {
            display: flex;
            align-items: flex-start; /* Align items at the top */
            gap: 20px; /* Space between the form and the image */
        }

        /* Form Styling */
        form {
            width: 50%; /* Adjust form width */
            font-family: Arial, sans-serif; /* Optional font style */
        }

        form label {
            display: block;
            margin-top: 10px; /* Space between labels */
        }

        form input[type="text"] {
            width: 100%; /* Full width for inputs */
            padding: 5px;
            margin-bottom: 10px; /* Space below inputs */
            box-sizing: border-box; /* Ensure padding doesn't affect total width */
        }

        form input[type="submit"] {
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            cursor: pointer;
        }

        form input[type="submit"]:hover {
            background-color: #0056b3; /* Change color on hover */
        }
        form input[type="button"] {
            padding: 10px 20px;
            background-color: #007BFF;
            color: white;
            border: none;
            cursor: pointer;
        }

        form input[type="button"]:hover {
            background-color: #0056b3; /* Change color on hover */
        }
        

        /* Image Styling */
        img {
            width: 300px; /* Fixed image width */
            height: auto; /* Maintain aspect ratio */
        }
    </style>
    <div class="container">
    <form action="Mimosa.php" method="get">
        <label>Question</label><br>
        <input type="text" name="Q"><br>
        <label>Evidence</label><br>
        <input type="text" name="E"><br>
        <label>Summary</label><br>
        <input type="text" name="S"><br>
        <input type="submit" value="Post!">
        <input type="button" value="Registrasi" onclick="window.location.href='R71.php'">
    </form>
    </div>
</body>
</html>
<?php
    $I1 = $_GET["Q"];$I2 = $_GET["E"];$I3 = $_GET["S"];
    echo "Konfirmasi catatan<br>Pertanyaan :<br>{$I1}.<br>Alasan :<br>{$I2}.,Ringkasan :<br>{$I3}.";
    $sql = "INSERT INTO qec (Question,Evidence,Summary)
    VALUES ('$I1','$I2','$I3')";
    #Eror ini gak terlalu berpengaruh, ini karna efek dari import file PHP yang ->
    mysqli_query($conn,$sql);
    mysqli_close($conn);
?>