首页/技术开发/内容

入门者的留言簿

技术开发2024-02-27 阅读()
[摘要]<a href="../index.php">返回首页</a>】<hr> <p> <?php if(nam&c...
<a href="../index.php">返回首页</a>】<hr>  
<p>  
<?php  
if($nam&$content)  
{  
$fp=fopen("text.txt","a+");  
rewind($fp);  
$content=htmlspecialchars($content);  
$content=ereg_replace(" ","&nbsp;","$content");  
$t=date("Y-m-d-G:i:s");  
$liuy="<center><b>$biaoti</b></center>  
【".$nam."】&nbsp;&nbsp于 ".$t." 留言&nbsp;&nbsp;E-mail:<a href=mailto:$address>$address</a><br><br>$content<br><hr><br>";  
fwrite($fp,$liuy);  
fclose($fp);  
}  
?>  
<table border="0" width="100%">  
<tr>  
<td width="15%"> </td>  
<td width="85%">  
<?php  
$fp=fopen("text.txt","r");  
$message=fread($fp,filesize("text.txt"));  
fclose($fp);  
$message=nl2br($message);  
echo "<font size='2'>".$message."</font>";  
?> </td>  
</tr>  
</table>  
<p> </p>  
<div align=center>  


<form method="POST" action="liuyan.php" name="form1">  
<p align="center"><a name="ly"></a>【我要留言 (北联网教程,专业提供视频软件下载)

第1页  第2页  第3页 

……

相关阅读