post.php 檔案
require('config.php');
?>
$nikename=$arr_request['nikename'] $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_nnumber); subjectold;
$str_sql=" insert into $table_name
(nikename,subject,date_created,ip_address,message,email_address,zhuye_address,oicq)
value> $subject',
'$date_now',
'$ip_address',
'$message',
'".$arr_request['email_address']."', '".$arr_request['oicq']."'
)";
$result=mysql_db_query($db_name,$str_ );
if (! $result){
affy_error_exit('SQL Insert Execution has failed.');
} else ";
echo "
發表文章";
charset=gb2312" http-equiv=Content-Type>";
echo " ;
echo "謝謝你發表留言,將自動顯示留言內容";
echo "
"自動的回傳到留言簿首頁,?
請點這裡回中.";
>
}
? >
index.html 檔案
謝謝你的留言!
我的留言本
首先感謝你的留言,你的每一句話我都會仔細閱讀! ! !字體>