A personal web page Automation generation system

Source: Internet
Author: User
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>
&LT;TD width= ":</td>" > title
&LT;TD colspan= "3" >
<input type= "text" name= "Timu" size= "M" >
</td>
</tr>
<tr>
&LT;TD width= "height=" > Author:</td>
&LT;TD width= "154" height= ">"
<input type= "text" name= "Zuozhe" size= ">"
</td>
&LT;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>
&LT;TD width= before "the:</td>" > title
&LT;TD width= "579" >
<textarea name= "Muban1" cols= "rows=" "5" ></textarea>
</td>
</tr>
<tr>
&LT;TD width= before the ":</td>" > Body
&LT;TD width= "579" >
<textarea name= "muban2" cols= "rows=" "5" ></textarea>
</td>
</tr>
<tr>
&LT;TD width= after ":</td>" > Body
&LT;TD width= "579" >
<textarea name= "muban3" cols= "rows=" "5" ></textarea>
</td>
</tr>
<tr>
&LT;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>



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.