Home > Article > Backend Development > PHP+DBM student recruitment program (3)_PHP tutorial
6、登出文件logout.php3
setcookie("login",false,time()+31536000);
header("location:login.php3");
?>
7、修改信息文件modify.php3
require("common.php3");
$id=$login;
if($submit){
if($name=="")error("请填写您的名字!");
elseif($mail=="")error("请填写您的邮件地址!");
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);
?>
} ?> 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... Statement: The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn Previous article:Three ways to access and query mysql data in PHP_PHP tutorialNext article:Three ways to access and query mysql data in PHP_PHP tutorial Related articlesSee more |