You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
860 B
PHP

<?php
include __DIR__ . "/../bits/navbar.php";
?>
<form class="container mt-4" action="<?php echo SITE_PATH; ?>add.php" method="POST">
<div class="card border-primary">
<div class="card-body">
<h3 class="card-title text-primary">Create Question</h3>
<?php if ($arg1 == "error") { ?>
<div class="alert alert-danger">Check your stuff and try again.</div>
<?php } ?>
<input type="text" class="form-control mb-4" name="question" placeholder="Question" required />
<textarea class="form-control" name="answers" placeholder="Answer Choices (one per line)" rows="4" required></textarea>
</div>
<div class="card-footer">
<button type="submit" class="btn btn-success"><i class="fas fa-save"></i> Create Question</button>
</div>
</div>
</form>