php留言板问题?谁能和我说下
这个留言板算是一个系统,步骤该怎样进行??不知该怎样下手。。
回复讨论(解决方案)
做一个前台页面通过get一个值来判定操作类型,比如?do=ly这样就显示表单,如果没有参数就显示所有留言列表,在就是后台做一一个接受post值得处理文件,在就是做一些基本的安全过滤和规则判定,就直接入库存起来, 就这样啊,呵呵
我给一个楼主我的思路吧:
1、需求分析:楼主想要的留言版是否需要验证用户,是否需要安全性高...。
2、数据库设计:通过分析楼主的需求确定需要哪些表和字段。
3、html页面设计,通过需求分析确定要几个页面,及需要的样式,如果要求高这一步可以提前。
4、书写php代码,通过需求分析,确定需要的具体功能,然后书写指定的代码。
5、测试程序可用性,修改bug。
写这个程序的前提是要看楼主具体的需求,可简单可复杂。我的回答完毕,希望对楼主有帮助。
无非就是CURD操作
一个“留言板”应该具有如下功能:
1、他提供一个输入表单,为了用户写下意见文字。(append)
2、他提供一个留言列表,为了用户查看已存在的留言。(browse)
3、他提供一个管理表单,为了管理员删除已存在的留言。(manage)
这就是编写一个“留言板”的基本分析方法,也就是“留言板”类(boand)所应有的基本方法
无论你使用文件还是数据库来保存“留言板”的数据,都需要有一个标志数据来源的变量供类的方法使用。这就是属性
你的“留言板”类可能会被用于不同的目的,因此就可能需要用标识用途的属性headline(标题);为了展现不同的风格,你又可能需要属性style
总之,无论你的“留言板”以什么样的界面展现给用户,用何种媒体存放数据。其基本的方法都是要存在的
我这里有 文本式留言板 视频以及相关的代码,看了后就会了,如果需要,加下QQ:75528796

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Long URLs, often cluttered with keywords and tracking parameters, can deter visitors. A URL shortening script offers a solution, creating concise links ideal for social media and other platforms. These scripts are valuable for individual websites a

Following its high-profile acquisition by Facebook in 2012, Instagram adopted two sets of APIs for third-party use. These are the Instagram Graph API and the Instagram Basic Display API.As a developer building an app that requires information from a

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

This is the second and final part of the series on building a React application with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be dev

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

The 2025 PHP Landscape Survey investigates current PHP development trends. It explores framework usage, deployment methods, and challenges, aiming to provide insights for developers and businesses. The survey anticipates growth in modern PHP versio
