Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rukongai's avatar

Send 2 requests from same file, following the 2023 PHP tutorial

So I am following the new 2023 PHP tutorial and I have a quick app at a point where I don't know what the correct way to proceed is. I have a page with a form in it and when I submit I send the request to the same page, it reloads and uploads the data to the database. Now I also want to have a button that deletes some data. How would I go about doing that the proper way.

0 likes
1 reply
jlrdw's avatar

With a post request of the id of the record you want to delete. I suggest supplementing the tutorial with a php tutorial from w3schools or another.

Please or to participate in this conversation.