PHP System Share Template problem

Source: Internet
Author: User

We are using PHP+HTML+CSS to write a management system, such as registration system, voting system, statistical system, etc., we often need to look at the admin background to check the situation of each of the applicants, the problem then came, because the competition or activities required different, often the registration form is not the same, So in the background to view the need for the corresponding page, so that not only the platform become very bloated, and no expansion, to the use of customers to bring a burden. So how do we solve this problem?

I think everyone can think of this way of sharing the template, I did not find the relevant articles on the Internet, so write down to share with you:


The first step to perform validation, only to confirm the user login backstage can execute the data query, will take out the value to the array $rr, the second step, the following HTML and PHP mixed page will display the details of the applicants, the third step, in the final, if it is a background landing user, then do not show, so that the application can be used as an application form forms submit personal situation, the latter can be used as a detail page, to check the registration of a certain position.

Specification of the corresponding format, so that the Web front-end designers do not have to understand PHP can also do the appropriate page, promote the progress of the project, do not need the programmer and the front-end staff to cooperate. Formal use, you can create a model folder in the directory, all the templates are placed inside, each to create a registration will use the template as a field to write to the database, automatically generated by the program "View Details" link, free to see a wide variety of registration details.

Finally, I wrote this article level is very low, but the individual writes the project, feels the better one kind of idea, hereby shares with everybody, welcome everybody criticism to correct!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.