PHP+DBM's Yearbook program 5

Source: Internet
Author: User
10, member information display file SHOW.PHP3
if ($login) {
Require ("common.php3");
if (!isset ($id)) error ("How do I not fill in the user ID?") ");
else{
$id =chop ($id);
$DBM =dbmopen ("Class", "R");
if (!dbmexists ($DBM, $id)) error ("Without this 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);
}
?>

<title>View the <?echo$name?> information</title>
























































Width= "80%" > Width= "34%" >nickname

The Detailed information


Name


Gender
e-mail address
Personal homepage >
Current occupation
OICQ number
if ($oicq = = "") echo "Don't Tell you!" ";
else{
?>
"Target=_blank title= 's OICQ number is , click to view material >/l/00/0/" width=16>
}
?>
ICQ number
if ($oicq = = "") echo "Don't Tell you!" ";
else{
?>&img=7>
}?>
Birthday Date
Contact address
Contact phone
Personal profile


}else header ("location:login.php3");
?>
11. css File:
A {text-decoration:none; color: #336699; font-family: "Song Body"; font-size:9pt}
a:hover {text-decoration:underline; color: #FF0000; font-family: "Song Body"; font-size:9pt}
Body {font-family: "Song Body", "serif"; font-size:9pt}
TD {Font-family: "Song Body", "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, song body; 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}
All right, it's done.

The above describes the php+dbm of the Yearbook program 5, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.