chinaren classmate registration PHP + DBM classmate registration program 3

WBOY
Release: 2016-07-29 08:34:01
Original
2161 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);
?>

同学录用户修改信息






  



    
  
      

        
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            
          
            
            
            

                                                                            #ffffff height= 25 width=486>                                                                              value="beautiful woman">beautiful woman< ;/option>
                                                                                                                                                                                    Align = MIDDLE BGCOLOR =#FFFFFFF Height = 25 Width = 121 & GT; Personal Introduction: & LT;/TD & LT;
& LT; TD Align = Left BGCOLOR =#FFFFFFF Height = 25 = 486 & gt;
& lt; textarea class = "state" name ="intro" cols="40" rows="4">
                                                                              bgColor=#ffedc8>                                                                                                                                                value="Confirm modification" class= "stbtm">
                                                                                              ;/form>
                                              ;/TD>
                                                                     lt;/TABLE>



}
?>
The above introduces the chinaren classmate registration PHP + DBM classmate registration program 3, including the content of chinaren classmate registration. I hope it will be helpful to friends who are interested in PHP tutorials.


Related labels:
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
修改信息-同学录
NickName:   
              >
            
电子邮件:   
              >
              *必须填写
您的OICQ:   
              >
            
您的主页:   
              
            
您的 ICQ:   
              >
            
您的名字:   
              >
              *必须填写
您的电话:   
              >
            
出生日期:   
              >
              *类似2000-10-10
联系地址:   
              >
            
您的职业: