PHP development corporate website tutorial: Add news information
Click the add button to jump to the addne.php page
Let’s take a look at the addne.php code:
添加新闻资讯
Look at the above code: form submission addnews.php page
Let’s look at the code of the following addnews.php page:
alert('添加新闻成功');location.href='news.php';"; }else{ echo ""; } ?>
Get the form information, then add it to the database table, and then judge whether the addition is successful