GET vs. POST Best Practices

后端 未结 10 2121
南方客
南方客 2020-11-27 19:44

For my web application (PHP/MYSQL), I show a list of items and a link on each row to delete the item. Right now, the link is



        
10条回答
  •  野性不改
    2020-11-27 20:29

    In general it's not a good idea to have a GET request that modifies the system state somehow, like deleting an item.

    You could have your form look like this:

    Delete item

提交回复
热议问题