Home  >  Article  >  Backend Development  >  PHP+DBM student recruitment program (5)_PHP tutorial

PHP+DBM student recruitment program (5)_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:03:42803browse

10. Member information display file show.php3
if($login){
require("common.php3");
if(!isset($id))error( "Why is the user's ID not filled in?");
else{
$id=chop($id);
$dbm=dbmopen("class","r");
if( !dbmexists($dbm,$id))error("There is no such user ID!");
  else{
    $data=dbmfetch($dbm,$id);
        $info=explode("|!:!|",$data);
        $name=$info[0];        $nickname=$info[1];        $mail=$info[2];        $home=$info[3];        $oicq=$info[4];
        $icq=$info[5]; $add=$info[6]; $tel=$info[7]; $birth=$info[8]; $job=$info[9];
        $intro=$info[10]; $sex=$info[11];
  }
  dbmclose($dbm);
}
?>

查 看 <?echo$name?> 的 资 料


width="80%">

      

        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
      
        
        
      
    
  

          

的详细资料


        
姓名
      width="34%">NickName
          


        
性别
邮件地址
个人主页 >
目前职业
OICQ号码
if($oicq=="")echo "不告诉你!";
else{
?>
的OICQ号码是,点击查看资料>/l/00/0/" width=16>
}
?>
ICQ 号码
if($oicq=="")echo "不告诉你!";
else{
?>&img=7>
}?>
生日日期
联系地址
联系电话
个人简介


}else header("location:login.php3");
?>

11、css文件:
A {text-decoration: none; color: #336699; font-family: "宋体"; font-size: 9pt}
A:hover {text-decoration: underline; color: #FF0000; font-family: "宋体"; font-size: 9pt}  
body {  font-family: "宋体", "serif"; font-size: 9pt}
td {  font-family: "宋体", "serif"; font-size: 9pt}
input {  font-size: 9pt}
p {  font-size: 9pt}
br {  font-size: 9pt}
tr {  font-size: 9pt}
table {  font-size: 9pt}
INPUT {    FONT-FAMILY: arial,宋体; FONT-SIZE: 9pt; PADDING-TOP: 3px }
INPUT.text {
    BACKGROUND-COLOR: #f0f0f0; BORDER-BOTTOM: #101010 1px solid; BORDER-LEFT: #101010 1px solid; BORDER-RIGHT: #101010 1px solid; BORDER-TOP: #101010 1px solid; COLOR: #000000
}
INPUT.file {
    BACKGROUND-COLOR: #f0f0f0; BORDER-BOTTOM: #101010 1px solid; BORDER-LEFT: #101010 1px solid; BORDER-RIGHT: #101010 1px solid; BORDER-TOP: #101010 1px solid; COLOR: #000000
}
SELECT {
    BACKGROUND-COLOR: #f0f0f0; BORDER-BOTTOM: #101010 1px solid; BORDER-LEFT: #101010 1px solid; BORDER-RIGHT: #101010 1px solid; BORDER-TOP: #101010 1px solid; COLOR: #000000
}
TEXTAREA {
    BACKGROUND-COLOR: #f0f0f0; BORDER-BOTTOM: #101010 1px solid; BORDER-LEFT: #101010 1px solid; BORDER-RIGHT: #101010 1px solid; BORDER-TOP: #101010 1px solid; COLOR: #000000
}
.stedit { font-size: 9pt; border-left: 1px solid #4a3163;  
border-right: 1px solid #4a3163; border-top: 1px solid #4a3163;  
border-bottom: 1px solid #000066 }
.stbtm { background-color: #cococo; color: #000000; font-size: 9pt; height: 20px;  
border-left: 1px solid #ffffff; border-right: 1px solid #665b8e;  
border-top: 1px solid #ffffff; border-bottom: 1px solid #665b8e }


好了,完了 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/316221.htmlTechArticle10、会员信息显示文件show.php3 ? if($login){ require(common.php3); if(!isset($id))error(怎么没有填写用户的ID?); else{ $id=chop($id); $dbm=dbmopen(class,r); if(!db...
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