PHP development small forum tutorial publishing new posts-1
Create addnew.php file
This page uses table+simple css style for page layout
The final rendering is as follows
##This page uses session to determine whether the user is logged in
The code is as follows
alert('请先登录');location.href='login.html';"; } ?>添加新帖
The next step is to move this page The filled in data is submitted to the addnew_post.php file to process the data