liuyan.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
require("top.php");
if($act=="save")
{
if($title=="" || $content=="")
{
echo "<script>alert('留言标题,内容,不能为空');history.back();</script>";
exit;
}
$sql="insert into guest(title,content) values ('$title','$content')";
$res=mysql_query($sql);
if($res)
{
echo "<script>alert('留言成功');location.href='liuyan.php';</script>";
exit;
}
else
exit("添加失败了");
}
?>
<form id="form1" method="post" action="?act=save">
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" colspan="2" align="center" bgcolor="#2984C9" style="color:#fff"><strong>我要留言</strong></td>
</tr>
<tr>
<td width="34%" align="right">留言标题</td>
<td width="66%" align="left">
<label for="title"></label>
<input type="text" name="title" id="title" />
</td>
</tr>
<tr>
<td align="right">留言内容</td>
<td align="left"><label for="content1"></label>
<textarea name="content" id="content1" cols="45" rows="5" ></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="button" id="button" value="留言提交" /></td>
</tr>
</table>
</form><br>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#2984C9" style="border-collapse:collapse;">
<tr>
<td height="30" colspan="2" align="center" bgcolor="#2984C9" style="color:#fff">留言列表</td>
</tr>
<?
$sql="select * from guest order by id DESC";
$res=mysql_query($sql);
while($d=mysql_fetch_array($res))
{
?>
<tr>
<td width="35%" height="30" align="center">留言标题:</td>
<td width="65%" align="left"> <font color="blue" size="4"><?=$d[title]?></td>
</tr>
后面还有 26 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。