PHP Multi-Select button value or go to value
To do a PHP rights management, to use the multi-select button to do, such as: The Administrator to give an ordinary user a permission, is to give him can see what or can be published in that place, this should be how to write code? Thank you!
------Solution--------------------
Base Code
$dict = Array ();
if ($_server[' request_method '] = = "POST") {
echo array_sum ($_post[' R ');
$dict = $_post[' R '];
}
Echo ';
------Solution--------------------
The base code has been given to you,
At this time you have to play your mind, from theory to reality to achieve
For example you give him every administrative privilege
Customer management, contract management, financial management, work Order management, basic management
01110
0 delegate has permission to control
1 Code without permission control
Write to the database, and then compare when reading. Give the appropriate executable permission.
------Solution--------------------
You can judge the checked attribute of the checkbox.
------Solution--------------------
You can tell when you output a checkbox, refer to the moderator's code.
------Solution--------------------
Reference:
Reference: You can judge the checked attribute of a checkbox.
1 on the hook, 0 will not hook, is this it? But how does it know when the 1 will automatically tick?
/>
------Solution--------------------
You can match the list of permissions with the basis one by one used to make judgments.
When displayed on the page, it is possible to control the checked attribute of the checkbox by judging the value.
------Solution--------------------
#10写的很清楚了, you always emphasize that you are a novice, if you are new to the HTML do not know, then others can not help you
I write the following two sentences in HTML, to see the difference will know
------Solution--------------------
Sent Past, check