Php-about embedding loop statements in htm files

Source: Internet
Author: User
Now I want to create a department permission control page. First, I wrote several arrays in the PHP file, including Level 1 department, level 2 department, and Level 3 department. These three departments are affiliated. For example, the first-level department is a one-dimensional array, the second-level department is a two-dimensional array, and the third-level department is a three-dimensional array. In the htm file, I want to use loop display. Add a checkbox to each department at level 3, select and submit, and then process it in the PHP file. The problem is that it is unclear how to write a loop. I found the following statement: checked & quot; true & quot; & lt ;! -- {If}-phploophtm loop

Now I want to create a department permission control page. First, I wrote several arrays in the PHP file, including Level 1 department, level 2 department, and Level 3 department. These three departments are affiliated. For example, the first-level department is a one-dimensional array, the second-level department is a two-dimensional array, and the third-level department is a three-dimensional array. In the htm file, I want to use loop display. Add a checkbox to each department at level 3, select and submit, and then process it in the PHP file. The problem is that it is unclear how to write a loop. I found the following statement:


                                                                                    checked="true"                              
                                    >                               $regular[name]                                                   
   

I only need the $ regular [name] and change it to my own name. How should I write the department array? Is there a loop in the htm language? Or is it embedded in other languages?
In this regard, what should I look?

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.