Challenge the source code of the best message book (II) _ PHP Tutorial

Source: Internet
Author: User
Challenge the source code of the best message book (2 ). Post. php file? Phprequire (config. php );?? Php $ nikename $ arr_request [nikename]; if (strlen ($ nikename) 0) {echocenter; echoh2fontcolorred error message! Fon22. echo does not post. php files.
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








Http://www.bkjia.com/PHPjc/316185.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/316185.htmlTechArticlepost.php files? Php require ('config. php ');? ? Php $ nikename = $ arr_request ['nikename']; if (strlen ($ nikename) = 0) {echo center; echo h2font color = red error message! /Font/h2; echo for no...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.