PHP development small forum tutorial introduction
There are various encyclopedia forums on the Internet. Forums exist to facilitate communication between people, so they definitely need to publish content, but not everyone can publish content. Otherwise, they need to log in. Forums are not allowed to be posted. If there is a forum, there must be posts in it. Others can leave messages and reply to our posts. So the forum functions we will teach you in this tutorial are,
Forum section homepage
Post forum section
Post forum section
Post details section
Reply post section
User registration login section
Create the PHP files we need
## index.php : Homepage
login.html : Front desk login page
login.php : Process the data passed from the login.html page
reg.html : Front desk registration page
reg.php : Process the data passed from the reg.html page and store the data in the database
add_forum.php : Add a forum page to the front desk
save_forum.php : Store the data passed from the add_forum.php page into the database
forums.php : Display the details page of each forum
addnew.php : Front-end post page
addnew_post.php : Process the data passed from the post page addnew.php and store the data in the corresponding
thread.php in the data table: View the content of the posted post
##reply.php : Reply to the post
reply_post.php : Store the content replied from the reply page reply.php into the database
Let’s first take a look at our homepage index.php page##add_forum.php page
Publish forum module
We can learn other sections in the course study
The next step is to create our database and data sheet