Home > Backend Development > PHP Tutorial > PHP+DBM student recruitment program (3)_PHP tutorial

PHP+DBM student recruitment program (3)_PHP tutorial

WBOY
Release: 2016-07-21 16:03:33
Original
963 people have browsed it

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...



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
  
      

        
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
& lt;/troc & gt;
& lt; tr & gt;
& lt; td align = middle bgcolor =#fffFFFF Height = 25 width = 121 & gt; & Lt; td align = left bgcolor=#ffffff height=25 width=486>
                                                       < option value=" Pretty Woman"> Pretty Woman
                                                                 < /td>
                                                                                 🎜>        < ;td align=left bgcolor=#ffffff height=25 width=486>                                                        [10];?>
修改信息-同学录
NickName:   
              >
            
电子邮件:   
              >
              *必须填写
您的OICQ:   
              >
            
您的主页:   
              
            
您的 ICQ:   
              >
            
您的名字:   
              >
              *必须填写
您的电话:   
              >
            
出生日期:   
              >
              *类似2000-10-10
联系地址:   
              >
            
您的职业:   
              
            
  
              
  
                
                  
                                                                                                                                                                                                                                                                        TD>
                                                              gt;
< ;BR>