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)?

javascript - How to create such a page with the function of registering and logging into the message board (all-purpose code friends, please answer)?

WBOY
WBOYOriginal
2016-10-11 14:23:461418browse

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?

Reply content:

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?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn