Pear::Auth 認証
Pear::Auth 認証応用
ログインフォ-ム
PHP ファイル
LoginForm.php
63Pear Villageに戻る
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>認証応用ログインページ</title>
<link async rel="stylesheet"
href ="css/auth.css">
</head>
<body>
<div id="main_l2">
<form method="POST" action="">
<table>
<tr>
<th>ユーザ ID :</th>
<td>
<input type="text" name="username"
size="15" maxlength="20">
</td>
<!-- "username" は他の名前に変更する
ことはできない -->
</tr>
<tr>
<th>パスワード:</th>
<td>
<input type="password" name="password"
size="15" maxlength="20">
</td>
<!-- "password" は他の名前に変更する
ことはできない -->
</tr>
<tr>
<td colspan="2">
<input type="submit" value="ログイン">
</td>
</tr>
<tr>
</table>
</form>
<br>
<p>下部で動いている ユ-ザ ID と パスワ-ド
を入力してログインしてください。<br>
<?php
if(isset($err[$status])){
print("<br>".$err[$status]);
}
?>
</p>
<br>
<div id="object1">
<?php
$no = rand(0,19);
echo 'id = '. $id[$no];
?>
</div>
<div id="object2">
<br><br>
<?php
echo 'pass = '. $pass[$no];
?>
</div>
</div>
</body>
</html>
Pear::Auth 認証応用
ログインフォ-ム
PHP ファイル
LoginForm.php
63Pear Villageに戻る
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>認証応用ログインページ</title>
<link async rel="stylesheet"
href ="css/auth.css">
</head>
<body>
<div id="main_l2">
<form method="POST" action="">
<table>
<tr>
<th>ユーザ ID :</th>
<td>
<input type="text" name="username"
size="15" maxlength="20">
</td>
<!-- "username" は他の名前に変更する
ことはできない -->
</tr>
<tr>
<th>パスワード:</th>
<td>
<input type="password" name="password"
size="15" maxlength="20">
</td>
<!-- "password" は他の名前に変更する
ことはできない -->
</tr>
<tr>
<td colspan="2">
<input type="submit" value="ログイン">
</td>
</tr>
<tr>
</table>
</form>
<br>
<p>下部で動いている ユ-ザ ID と パスワ-ド
を入力してログインしてください。<br>
<?php
if(isset($err[$status])){
print("<br>".$err[$status]);
}
?>
</p>
<br>
<div id="object1">
<?php
$no = rand(0,19);
echo 'id = '. $id[$no];
?>
</div>
<div id="object2">
<br><br>
<?php
echo 'pass = '. $pass[$no];
?>
</div>
</div>
</body>
</html>