Php+text Message Book (i) _php tutorial

Source: Internet
Author: User
As you know, the importance of the database to the network. Because of the complexity of CGI, now ASP and Php+mysql have become the mainstream. Almost all of the personal pages have to use the message book, but the application of the message book is very unstable. This has brought a lot of inconvenience to online communication. Want to have their own message book more and more friends.
However, the free profile support for ASP and PHP is very small. I now recommend the Move Station Guide, (http://www.knowsky.com) support PHP. This gives you the foundation to have your own message book. Now, I will use a text message This example to tell the simple usage of PHP.


First, we first determine, the message of a few processes: Write messages, send, view. (search) and so on. And for the owner, the management of the message book is indispensable. So we might as well locate 6 PHP files and 1 text files. 6 php files are: guest.php manage.php reply.php sys.php del.php edit.php,1 text files are: guest.txt


First look at the content of guest.php, you can certainly directly put the following content in your PHP page, please respect the author's work, thank you.
----------------------
guest.php:

Require ("sys.php");
if ($B 1)
{
if ($message = = "" or $name = = "")
{
$errorm = "something went wrong!!! Name and message contents must be filled in ";
}
Else
{
#写入数据
$space = "";
$time = Date (y year m D Day h i min);
$ip = $REMOTE _addr;
$name =encode ($name);
$homepage =encode ($homepage);
$from =encode ($from);
$email =encode ($email);
$message =stripslashes ($message);
$message =htmlspecialchars ($message);
$message =check_strlen_long ($message);
$message =nl2br ($message);
$guestcontent = "Message content:













http://www.bkjia.com/phpjc/478795.html www.bkjia.com true Span id= "Isbasedonurl" itemprop= "Isbasedonurl" >http://www.bkjia.com/phpjc/478795.html techarticle you know, the importance of the database to the network. Because of the complexity of CGI, Now the ASP and the Php+mysql have become the mainstream. Almost all of the personal pages have to use the message book, but the application of the message ...

  • Related Article

    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.