Home > Article > Backend Development > javascript - How to create such a page with the function of registering and logging into the message board (all-purpose code friends, please answer)?
1. Write a page that requires registration and login, and save the registration information locally.
2. Registered users can log in and leave messages. And close the web page and open it next time, the message will still be there.
1. What's the idea?
2. What is needed?
3. How to achieve it?
1. Write a page that requires registration and login, and save the registration information locally.
2. Registered users can log in and leave messages. And close the web page and open it next time, the message will still be there.
1. What's the idea?
2. What is needed?
3. How to achieve it?
First write a form on the front-end page, and then submit it to the back-end. The back-end returns information to the front-end. Use session to save the user information and save the message in the database. You can search for the message by user name next time
Local? Do you want to use a standalone machine? localstroage?