The station has just set up soon, there are netizens to write to me, said: For the support of PHP free personal home page space does not support the user's MySQL, how to write a message board? In fact, there is a very simple way to write the message board, that is, the way to manipulate text files.
Write two PHP files (note.php and result.php) plus a text file (Note.txt) that holds message records.
OK, first look at the example: (note.php)
<style type= "Text/css" >
<!--
. {font-family: "Song Body"; Font-size:9pt;color: #000000}
-->
</style>
<body bgcolor= #cccccc >
<center><font style= "Color=color: #cccccc; font-size:12pt" > Little message Book </font></center>
<form method= "POST" action= "result.php" >
<center>
<table border=0 width=80%>
<tr>
<TD width=20%> Your Name:
</td>
<TD width=80%><input type=text name=nickname style=width:100%>
</td>
</tr>
<tr>
<TD width=20%> e-mail:
</td>
<TD width=80%><input type=text Name=email style=width:100%>
</td>
</tr>
<tr>
<TD width=20%> Message:
</td>
<TD Width=80%><textarea name=note style=width:100%></textarea>
</td>
</tr>
<tr>
<TD width=20%> </td>
<TD width=80% align=center><input type= "Submit" value= "OK" ><input type= "reset" value= "rewrite" >
</td>
</tr>
</table>
?
$f = fopen ("Note.txt", "R");
$msg = Fread ($f, FileSize ("Note.txt"));
Fclose ($f);
print "$msg";
?>
<p align=right><font style= "Color=color: #cccccc font-size:12pt" > Author: <a href= "mailto: Greenchn@163.net "> Oriental snake </a><br>
Home: <a href= "http://bianceng.cn" > Programming starter </a></font>
</center>
</body>