Call 这种页面怎么看啊
session 看一看php 浪子星空的帮助文件吧!
session 看一看php 浪子星空的帮助文件吧!
解决方案 »
- 数据库问题
- 单例模式的应用问题
- 马上散分,关于内容中过滤数字并替换星号
- 求PHP完整的集成环境配置?
- 请各位推荐一款性价比好 稳定快速的php空间
- 谢谢大家!
- 这句话是什么意思: header("HTTP/1.0 401 Unauthorized");
- 事情比较急,转换成php语法,谢谢!
- 请问怎么通过php查看服务器的CPU和内存占用
- 哪位收藏了這文章:PHP安装、配置手册,http://www.csdn.net/Expert/TopicView1.asp?id=1008822
- 我做了个COM组件转发数据到PHP的问题!!急!!!!
- PHP中有像ASP中Request.ReadBinary()的方法来读取到所有POST过来的HTTP二进制数据的函数吗?
session_start();
session_register("user_name");
session_register("use_pass");
session_register("group_id");
$group_id = 0;
require("comman.php");
$DB = new MyOraDB;
if (($username)and($password)){
$Sql = "select * from user_info where user_name='$username' and password ='$password'";
$DB -> query($Sql);
while($DB ->next_record()){
}
}else{
print "<script language=javascript>";
print "alert('对不起!该用户名或密码有误请重新输入');window.location='login.php';";
print "</script>";
} } else{
?>
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script LANGUAGE=javascript>
function aa(){
if (document.login.username.value==""){
alert('请输入用户名!');
return false;
}
if (document.login.password.value==""){
alert('请输入密码!');
return false;
}
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="550" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<form name=login method=post action="login.php">
<td width="550" height="396" valign="middle">
<table width="257" border="0" align="center">
<tr>
<td align="center" valign="top" bgcolor="#FFCC99"> 用户名:
<input type="text" name="username">
<br>
密 码:
<input type="password" name="password">
</td>
</tr>
<tr>
<td valign="middle" align="center" bgcolor="#FFCC99">
<input type="submit" name="Submit" value="确 认" ONCLICK="aa()">
<input type="reset" name="Submit2" value="取 消">
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</body>
</html>
<?}?>