Hi, I want to know how can I do a page devided into 4 parts or forms, and according to the level of the user in the database , the parts will appear. for example:- the levels are 1, 2, 3, 4, 5 respectively, and parts of the page is A, B,C,D,E if the user is in the first level, part A only appear, if second level"A&B", if third level "A,B&C"........etc. The above or this is better Create one link to multiple pages each page will be allowed according to the level of the user, if the user level 1 page "A" Will show, if 2 page "B" will show.... if the level is three page "C" will show /.........etc
Hy, If you use PHP and store the user's level in a session, for example $_SESSION['level'], you can use something like this: if($_SESSION['level'] == 1) { echo 'part A'; } else if($_SESSION['level'] == 2) { echo 'part A and B'; } else if($_SESSION['level'] == 3) { echo 'part A and B and C'; } else if($_SESSION['level'] == 4) { echo 'part A and B and C and D'; } else if($_SESSION['level'] == 5) { echo 'part A and B and C and D and E'; } Code (markup):