PHP development corporate website tutorial modification administrator

We have seen the display page, modified, and linked to the modifu.php page

Let’s look at the code of the following page:

     修改管理员  
用户名:

密 码:

Connect to the database

Then Get the id mentioned over there and query based on the id, save the database information to the page, so that we can delete the information and make modifications

Processing the modified php file modifyuser.php We also have a Parameter id

Let’s look at the code of the following modifyuser.php page:

alert('修改管理员成功');location.href='user.php'"; }else{ echo ""; } ?>

With the above code, we have completed the function of modifying the administrator

Continuing Learning
||
修改管理员
用户名:

密 码:

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!