post.php file
require('config.php');
?>
$nikename=$arr_request['nikename'];
if (strlen($nikename)==0)
{
echo "
";
echo "Error message!
";
echo "Sorry, is called must Fill in!!! Please refill!
";
echo "
";
echo "Free guestbook byLittle Bear provides technical support";
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 "< ;HTML>
Publish an article";
echo "
";
echo "
";
echo "< ;br>";
echo "
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn