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%" >
The Detailed information
|
Name |
|
| Width= "34%" >nickname
|
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.