Registration fu...LOGIN

Registration function (1)

Careful students will find that there is a registration button near the login button on the login page of many websites for new user registration, but our template does not. Why is this?

Because the backend administrator is not allowed to register. Just imagine, you develop a website, and everyone can register as an administrator, delete your database, and add hot chicken information. What will happen to your website? It will be scrapped in the least, and you will be jailed in the worst case (spreading obscene information) wait). But the important thing here is to learn technology, not to make a website and go online, so I changed the login page myself and added a registration function. I won’t talk about it when it comes to front-end registration.

Okay, let’s see how to change it. It's actually very simple. Just copy the code of the login button and put it behind the login button. But you need to link the price of the registration button and jump to the registration page.

QQ截图20170707143620.png

I changed the name of the original login button to user registration, and added a tag for jump.

QQ截图20170707143828.png

That’s it. The next step is to find a registration template, put it in the admin folder, and put all the js, css, images and other files on the registration page. Go to the js, css, and images folders under admin, and write the reference path correctly on the registration page.

QQ截图20170707144541.png

In this way, the front-end page of our registration page is completed, and the rest is the code for the registration function.

Next Section
<html> <body> <div style="padding:30px;"><input type="submit" class="button button-block bg-main text-big input-big" value="登录"></div> <!--注册按钮--> <div style="padding:30px;"> <!--页面跳转的连接--> <a href="resgiter.html" target="_blank"> <input type="button" class="button button-block bg-main text-big input-big" value="用户注册"> </a> </div> </div> </body> </html>
submitReset Code
ChapterCourseware