<!doctype html>
<html lang="en">

<head>
    <?php
        include ("conectare_db.php");
    ?>

</head>

<body>
<form action="/admin_actualizeaza_intrebare.html" method="post">
    <div class="container_update_q">
        <label><b>ID-ul intrebarii</b></label><br/>
        <input type="text" placeholder="ID..." name="q_id" required>
        <br/>
        <label><b>Domeniu</b></label><br/>
        <select name="domeniu" id="domeniu">
            <?php
                $stid = oci_parse($connection, 'SELECT domain_id, domain_name FROM domains');
                oci_execute($stid);
                while (($row = oci_fetch_array($stid, OCI_BOTH)) != false)
                {
                    echo "<option value='". $row[0] ."'>" .$row[1] ."</option>";
            }
            oci_free_statement($stid);
            oci_close($connection);
            ?>
        </select>
        <br/>
        <label><b>Text</b></label><br/>
        <input type="text" placeholder="Text..." name="text" required>
        <br/>
        <label><b>Dificultate</b></label><br/>
        <select name="dificultate">
            <option value="0">V. Easy</option>
            <option value="1">Easy</option>
            <option value="2">Medium</option>
            <option value="3">Hard</option>
        </select>
        <br/>
        <label><b>Tip intrebare</b></label><br/>
        <select name="tip_intrebare">
            <option value="0">Grila</option>
            <option value="1">Text</option>
        </select>
        <br/>
        <label><b>Raspuns 1</b></label><br/>
        <input type="text" placeholder="Raspuns..." name="r_1">
        <br/>
        <label><b>Raspuns 2</b></label><br/>
        <input type="text" placeholder="Raspuns..." name="r_2">
        <br/>
        <label><b>Raspuns 3</b></label><br/>
        <input type="text" placeholder="Raspuns..." name="r_3">
        <br/>
        <label><b>Raspuns corect</b></label><br/>
        <input type="text" placeholder="Raspuns..." name="r_c" required>
        <br/>
        <button type="submit">Trimite</button>
    </div>
</form>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
    include ("php/admin_actualizeaza_intrebare.php");
}
?>
</body>

</html>
Add update question html module
Add update question html module