分类:
2008-05-15 08:37:23
post.php 文件
require('config.php');
?>
$nikename=$arr_request['nikename'];
if (strlen($nikename)==0)
{
echo "
echo "
}
$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 "
exit;
}
?>
index.html 文件
display.inc文件!!!
$ip_address=ip_question($record->ip_address);
echo $ip_address;
?>
if ($record->huifu_biaozi)
{
?>
}
?>
key_liuyan ?>>删除
key_liuyan ?> >回复