Call 这种页面怎么看啊
session 看一看php 浪子星空的帮助文件吧!
session 看一看php 浪子星空的帮助文件吧!
解决方案 »
- php 数组问题
- 如何将file上传的文件到textarea中
- 大家帮忙分析一下代码,关于录制视频截图的
- ??怎么没执行??
- 大家看一下以后代码?
- 新手问题:function
- 暴简单正则表达式问题,很久不用php了,忘记了
- 救命:我的$PHP_SELF和$PATH_INFO显示为空?
- 如何在一个text字段里存入 一个Html页面 的代码???
- 请问在php中怎样取得浏览网页用户的操作系统,谢谢,我是刚学php的新手...
- 我做了个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>
<?}?>