php登陆问题[txt保存数据]

?php if ( $_SERVER [ ‘REQUEST_METHOD’ ]== POST ){ // Get UserNames
and Passwords. $Logi = file ( users/log.txt ); // Work out how many
there are $size = sizeof ( $Logi ); // Break apart passwords and
usernames foreach( $Logi as $Key = $Val ) { $Data [ $Key ] = explode (
|| , $Val ); } // run through list and see if any match for( $K = 0 ; $K
$size ; $K ++) { $user = $Data [ $K ][ 0 ]; $pass = $Data [ $K ][
1 ]; // If match set cookie and redirect. if ( $user == trim (
addslashes ( $_POST [ user ])) $pass == trim ( addslashes ( $_POST
[澳门新葡亰网站注册, pass ])) ) { setcookie ( in , 1 , time ()+ 3600 ); // Start hidden
page header ( Location: ); } } echo Login Failed. ; // If you didnt log
in show login form } else { ? div style=width:250px divstrongBlack Sheep
E-Team Login/strong/div divform name=Login method=post action=
?=$_SERVER [ ‘PHP_SELF’ ]; ? div align=rightUsername: input
name=user type=text br Password: input name=pass type=password br input
type=submit name=Submit value=Submit /div /form /div/div ?php } ?