post.php 文件
require('config.php');
?>
$nikename=$arr_request['nikename'];
if (strlen($nikename)==0)
{
echo "
";
echo "错误信息!
";
echo "对不起,呢称必须填写!!! 请重填!
";
echo "
";
echo "免费留言本由小熊提供技术支持";
echo "";
exit ;
}
$date_now=date('Y/m/d H:i:s');
$ip_address=getenv("REMOTE_ADDR");
$messageold=$arr_request['message'];
//$pattern="/n/";
//$replacement="
";
$message=computer_message($messageold,$hang_zifu_number);
$subjectold=$arr_request['subject'];
if (strlen($subjectold)>$hang_zifu_number)
$subject=computer_message($subjectold,$hang_zifu_number);
else
$subject=$subjectold;
$str_sql=" insert into $table_name
(nikename,subject,date_created,ip_address,message,email_address,zhuye_address,oicq)
values
( '$nikename',
'$subject',
'$date_now',
'$ip_address',
'$message',
'".$arr_request['email_address']."',
'".$arr_request['zhuye_address']."',
'".$arr_request['oicq']."'
)";
$result=mysql_db_query($db_name,$str_sql,$id_link);
if (! $result){
affy_error_exit('SQL Insert Execution has failed.');
}
else
{
echo "";
echo "
发表文章";
echo "
";
echo "
";
echo "
";
echo "
谢谢你发表留言,将自动显示留言内容";
echo "
";
echo "如果你的浏览器没有自动的返回到留言簿首页,?
请点这里返回.";
echo "
";
exit;
}
?>
index.html 文件
谢谢你的留言!
我的留言本
首先感谢你的留言,你的每一句话我都会仔细阅读!!!
查看留言
免费留言本由小熊提供技术支持
display.inc文件!!!
email_address ?> > nikename ?>
|
留言时间:date_created ?> |
来自:
$ip_address=ip_question($record->ip_address); echo $ip_address; ?>
|
主题:subject ?> |
message ?> |
if ($record->huifu_biaozi)
{
?>
版主回复: huifu ?> |
}
?>
email_address ?> > alt="nikename ?>的e-mail地址是:email_address ?> " border="0" width="15" length="15">邮件 zhuye_address ?>>alt="nikename ?>的主页地址是:zhuye_address ?> " border="0" width="14" length="14" >主页 width="14" length="14" >OICQ
key_liuyan ?>>删除 key_liuyan ?> >回复
|
|
http://www.bkjia.com/PHPjc/316185.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/316185.htmlTechArticlepost.php 文件 ?php require('config.php'); ? ?php $nikename=$arr_request['nikename']; if (strlen($nikename)==0) { echo center; echo h2font color=red错误信息!/font/h2; echo 对不...