36459-vm/coding/attempt.php
2026-05-27 14:29:58 +05:30

31 lines
708 B
PHP

<?php
if (!isset($_GET['track_id'], $_GET['challenge_no'])) {
die('Invalid access');
}
$track_id = (int)$_GET['track_id'];
$challenge_no = (int)$_GET['challenge_no'];
?>
<!DOCTYPE html>
<html>
<head>
<title>Challenge <?= $challenge_no ?></title>
</head>
<body>
<h2>Challenge <?= $challenge_no ?></h2>
<p><b>Question:</b> Write code to complete this task.</p>
<form method="post" action="submit.php">
<input type="hidden" name="track_id" value="<?= $track_id ?>">
<input type="hidden" name="challenge_no" value="<?= $challenge_no ?>">
<input type="text" name="answer" placeholder="Your Answer" required>
<br><br>
<button type="submit">Submit</button>
</form>
</body>
</html>