Challenge the source code of the best message book (2) post. php file
Require ('config. php ');
?>
$ Nikename = $ arr_request ['nikename'];
If (strlen ($ nikename) = 0)
{
Echo" ";
Echo "error message! ";
Echo "Sorry, it is required !!! Please fill in again!
";
Echo"";
Echo "free message book provided by http://little.oso.com.cn> cubs 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 ['subobject'];
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 ',
'$ Subobject ',
'$ 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" Post";
Echo" ";
Echo" ";
Echo"
";
Echo"
Thank you for posting your message. the message content will be displayed automatically ";
Echo"
";
Echo "if your browser does not automatically return to the homepage of the message book ,?
Click here to return .";
Echo"
";
Exit;
}
?>
Index.html file
Thank you for your message!
My message book
Thank you for your message. I will read every sentence carefully !!!
View messages
Technical support provided by Cubs for free message Books
Display. inc file !!!
Email_address?> >
Nikename?>
Message time: Date_created?>
From:
$ Ip_address = ip_question ($ record-> ip_address );
Echo $ ip_address;
?>
Subject: Subject?>
Message?>
If ($ record-> huifu_biaozi)
{
?>
Moderator reply:
Huifu?>
}
?>
Email_address?> >
Alt =" Nikename?> The e-mail address of is: Email_address?> "
Border = "0" width = "15" length = "15"> Email
Zhuye_address?> Alt =" Nikename?> The home page address is: Zhuye_address?> "
Border = "0"
Width = "14" length = "14"> home page
Nikename?> The OICQ of is:
Oicq?> "
Width = "14" length = "14"> OICQ
Key_liuyan?> Delete
Key_liuyan?> > Reply