Uploaded by Doston Sayfulloyev

3-amaliy

advertisement
O’zbekiston Respublikasi Axborot Texnologiyalari va
Kommunikatsiyalarini Rivojlantirish Vazirligi
Muhammad al-Xorazmiy nomidagi
Toshkent Axborot Texnologiyalari Universiteti
Amaliy ish
Topshirdi: 032-20 guruh talabasi
Ro`ziqulov Baxtiyor
Qabul qildi: _________________
Toshkent 2023
Dastur kodi:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.auth-form {
max-width: 500px;
margin: 0 auto;
border: 1px solid #ccc;
padding: 20px;
}
.tabs {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.tab {
margin-right: 10px;
padding: 10px;
cursor: pointer;
background-color: #eee;
border: 1px solid #ccc;
}
.tab.active {
background-color: #ccc;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
</style>
</head>
<body>
<div class="auth-form">
<div class="tabs">
<a href="#login-tab" class="tab active">Login</a>
<a href="#register-tab" class="tab">Register</a>
</div>
<div id="login-tab" class="tab-content active">
<form action="/login" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"
required><br><br>
<input type="submit" value="Login">
</form>
</div>
<div id="register-tab" class="tab-content">
<form action="/register" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"
required><br><br>
<label for="confirm_password">Confirm Password:</label>
<input type="password" id="confirm_password" name="confirm_password"
required><br><br>
<input type="submit" value="Register">
</form>
</div>
</div>
</body>
</html>
Download