今天我们来讲一下用php制作简单的留言板,首先来分析一下留言板,
第一步:设计数据库.
第二步:设置html页面,就是留言页面,
第三步:php处理页面,保存到数据库.
第四步:留言显示页面.
好了我们先来看看第一步:
CREATE TABLE IF NOT EXISTS `gx_guestbook` (
`id` int(4) NOT NULL auto_increment,
`gx_title` varchar(200) default NULL,
`gx_content` mediumtext,
`gx_time` datetime default NULL,
`gx_tel` varchar(20) default NULL,
`gx_mail` varchar(50) default NULL,
`gx_object` varchar(100) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=gb2312 AUTO_INCREMENT=10 ;
上面是创建数据库这里就没什么好说了.
再来看第二步设置html留言页面
客户留言
上面就是留言的页面了,效果图

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool