31 lines
603 B
PHP
31 lines
603 B
PHP
<?php
|
|
session_start();
|
|
require_once __DIR__ . '/../includes/auth_check.php';
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
$_SESSION['selected_language'] = $_POST['language'];
|
|
header("Location: practice.php");
|
|
exit;
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Select Programming Language</title>
|
|
</head>
|
|
<body>
|
|
|
|
<h2>Select Programming Language</h2>
|
|
|
|
<form method="post">
|
|
<select name="language" required>
|
|
<option value="python">Python</option>
|
|
<option value="c">C</option>
|
|
</select>
|
|
<button type="submit">Start Practice Track</button>
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|