📄 login.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>聊天室登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function CheckForm()
{
if(document.form1.USER_NAME.value=="")
{ alert("昵称不能为空!");
return (false);
}
return (true);
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.USER_NAME.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/chatroom.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 聊天室 - <?=$SUBJECT?> - 登录</span><br>
</td>
</tr>
</table>
<br>
<?
//============================ 昵称 =======================================
$connection=OpenConnection();
$query = "SELECT * from USER where USER_ID='$LOGIN_USER_ID'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
$NICK_NAME=$ROW["NICK_NAME"];
?>
<div align="center">
<b>
<form action="chat/index.php" name="form1" onsubmit="return CheckForm();">
<span class="big1">昵称:</span><input type="text" name="USER_NAME" size="10" maxlength="25" class="Biginput" value="<?=$NICK_NAME?>">
<input type="hidden" value="<?=$CHAT_ID?>" name="CHAT_ID">
<input type="submit" value="进入聊天室" class="BigButton" name="button">
</form>
</font>
</b>
</div>
<?
Button_Back();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -