Which tools should be used to submit the form to the database on the web page, and then update the contents of the home page?

I will write a website, after submitting the form on the website, store the relevant information about the form in the back-end database, and then reorganize the home page of the website. Read the content from the database to change the content of the home page (for example: add a card, the content is read from the database), what tools should be used in this process? As far as I know, I need to learn php+MySQL, first, so what tools should be used to automatically add those contents in the front-end web page? Can the same be done by PHP?

Apr.19,2021

php can also be implemented directly, but if you use the front-end method, you can use ajax to request data. The specific process:
1. Ajax submits data to the server when submitting the form;
2. Each time the website is opened, the data is requested from the server, and then the data is inserted into the web page by string concatenation.

if you need to submit the form and display the new "card", just concatenate and insert the string in the ajax callback.


suggest you learn the basics of programming

Menu