Giter VIP home page Giter VIP logo

guestbook's Introduction

PHP 留言板功能需求分析

功能需求:用户利用留言板可以发表自己的留言,管理员可以在后台对留言进行回复或删除管理。

主要功能分为:前台用户留言展示 与 后台留言管理 两个部分。

前台用户留言及展示详细功能需求如下:

从数据库中读出已有的留言信息,最新的留言显示在前面。

当留言数据较多时,需要分页显示。

留言表单留言者可以输入的信息为:昵称、电子邮箱(前台不显示)及留言内容,并通过 	JavaScript 脚本初步检测用户输入的信息。

留言处理部分需要对输入的信息再做长度限制及安全性处理,并将合法信息写入数据表中	。

如果留言成功,使用 html meta 的 refresh 属性自动返回留言显示页面。

后台留言管理详细功能需求如下:

管理员输入管理密码(默认 admin 账号),该密码与 user 	表的信息进行比较验证,也可与配置文件中配置的密码比对。

验证通过后,回到留言管理界面,每一条留言都提供一个表单以便于回复留言。

对于不恰当的留言,管理员可以直接删除。

PHP 留言板页面布局

各页面对应功能如下:

conn.php:数据库连接包含文件

config.php:系统配置文件,用于配置每页显示留言条数等

index.php:留言板主界面,用于留言读取显示及用户留言表单(留言表单在留言显示下方)

submitting.php:处理留言者提交的留言信息

admin/login.php:管理员登录及验证页面

admin/admin.php:留言管理主界面,读取留言数据,提供回复表单及删除等操作界面

admin/reply.php:用于留言回复,删除等具体操作

data/guestbook.sql:数据库文件

留言板配置:

1,导入guestbook.sql数据库

2,修改config.php文件中对应的数据库信息

3,配置成功后,管理员登录账户和密码均为admin

guestbook's People

Contributors

m3lon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.