php登陆页面
session_start();
if(isset('$_post[submit]')){
$sql="select * from chen where name='$_post[user]' and '$_post[pwd]'";
$rs=mysql_query($sql);
$row=mysql_fetch_array($rs);
if($row){
《 $time=time()+3600;
$_session[user]=("zhangsan",time()+3600);
$_session[pwd]="zhangsan",1);
$_session[]=("longin.php",true,$time);》
header("location:index.php");
?>
session_start();
if(isset('$_post[submit]')){
$sql="select * from chen where name='$_post[user]' and '$_post[pwd]'";
$rs=mysql_query($sql);
$row=mysql_fetch_array($rs);
if($row){
《 $time=time()+3600;
$_session[user]=("zhangsan",time()+3600);
$_session[pwd]="zhangsan",1);
$_session[]=("longin.php",true,$time);》
header("location:index.php");
?>