6. Log out file logout.php3
Setcookie ("Login", False,time () +31536000);
Header ("location:login.php3");
?>
7. Modify the information file Modify.php3
Require ("common.php3");
$id = $login;
if ($submit) {
if ($name = = "") Error ("Please fill in your name!") ");
ElseIf ($mail = = "") Error ("Please fill in your email address!") ");
else{
$DBM =dbmopen ("Class", "W");
$intro =nl2br ($intro);
$data = "$name |!:!| $nickname |!:!| $mail |!:!| $home |!:!| $oicq |!:!| $icq |!:!| $add |!:!| $tel |!:!| $birth |!:!| $job |!:!| $intro |!:!| $sex ";
Dbmreplace ($dbm, $id, $data);
Dbmclose ($DBM);
Header ("Location:index.php3");
}
}else{
$DBM =dbmopen ("Class", "R");
$data =dbmfetch ($dbm, $login);
$info =explode ("|!:!|", $data);
Dbmclose ($DBM);
?>
<title>Yearbook User Modification Information</title>
}
?>
http://www.bkjia.com/PHPjc/316241.html www.bkjia.com true http://www.bkjia.com/PHPjc/316241.html techarticle 6. Logout file Logout.php3 Setcookie (Login,false,time () +31536000); header (LOCATION:LOGIN.PHP3);? 7. Modify the information file Modify.php3? Require (COMMON.PHP3); $id = $login; if ($submit ...