Web page
When you want to use this system to create your personal homepage, I believe you have configured the relevant Apache server, MySQL database, as well as PHP.
Then start your MySQL database, build a database called study, and create a table called Wenzhang.
The following fields are established under phpMyAdmin:
ID smallint (5) No 0 auto_increment
Timu varchar Yes
Zuozhe varchar () Yes
Laiyuan varchar Yes
Textt text Yes
Riqi datetime Yes
Single page submission. FileName: input.php
<title>untitled document</title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<body bgcolor= "#FFFFFF" background= "image/b-graingr1.jpg" >
<form method= "POST" action= "shengcheng.php" >
<table width= "750" border= "1" align= "Center" >
<tr>
<TD width= ":</td>" > title
<TD colspan= "3" >
<input type= "text" name= "Timu" size= "M" >
</td>
</tr>
<tr>
<TD width= "height=" > Author:</td>
<TD width= "154" height= ">"
<input type= "text" name= "Zuozhe" size= ">"
</td>
<TD width= "height=" > Time: <font color= "#336600" > $t </font> </div>
</td>
</tr>
</table></p> ";
$muoban 4=fread ($muoban 1,1000);
$muoban 5=fread ($muoban 2,1000);
$muoban 6=fread ($muoban 3,1000);
Fclose ($muoban 1);
Fclose ($muoban 2);
Fclose ($muoban 3);
$main = "$muoban 4 $timu $qita $muoban 5 $textt $muoban 6";
Article generation
$TTT = ". html";
$n = $CDD. $ttt;
$f = fopen ($n, "a");
Fwrite ($f, $main);
Fclose ($f);
Print "<center><b> submit success <br>";
?>
<p><br></p>
<p><br></p>
<center><a href= "input.php" > continue to submit </a><a href= "guanli.php" > Management documents </a></center>
</body>
Template submission, FileName: muban.php
<title>untitled document</title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<body bgcolor= "#FFFFFF" background= "image/b-graingr1.jpg" >
<form method= "POST" action= "muobanshen.php" >
<table width= "750" border= "1" >
<tr>
<TD width= before "the:</td>" > title
<TD width= "579" >
<textarea name= "Muban1" cols= "rows=" "5" ></textarea>
</td>
</tr>
<tr>
<TD width= before the ":</td>" > Body
<TD width= "579" >
<textarea name= "muban2" cols= "rows=" "5" ></textarea>
</td>
</tr>
<tr>
<TD width= after ":</td>" > Body
<TD width= "579" >
<textarea name= "muban3" cols= "rows=" "5" ></textarea>
</td>
</tr>
<tr>
<TD colspan= "2" >
<div align= "center" >
<input type= "Submit" name= "Submission" value= "submitted" >
<input type= "button" Name= "Submit2" value= "reset" >
</div>
</td>
</tr>
</table>
</form>
</body>
Template generation, FileName: muobanshen.php
<title> Testing </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<link rel= "stylesheet" href= "Image/yifancss.css" >
<body leftmargin= "0" topmargin= "0" link= "#000066" vlink= "#000068" alink= "#000068" background= "image/ B-graingr1.jpg ">
<p>
?
$FDD =fopen ("Muoban1.txt", "w");
Fwrite ($FDD, $muban 1);
Fclose ($FDD);
$FDD =fopen ("Muoban2.txt", "w");
Fwrite ($FDD, $muban 2);
Fclose ($FDD);
$FDD =fopen ("Muoban3.txt", "w");
Fwrite ($FDD, $muban 3);
Fclose ($FDD);
Echo Template modified successfully! <p> ";
?>
<br>
<center><a href= "guanli.php" > Management files </a></center>
</p>
</body>