« See all FAQs for PHP Login & User Management with message center
How visitor can select his user type on registration from multiple user types?
You can create a drop down let’s say your system have 4 types of users which you created in user levels from your admin dashboard admin, teacher, student, guest. Now you want user to select his type during registration. You can use the following code in your register.php form.
<select name="user_type">
<option selected value="subscriber">Subscriber</option>
<option value="student">Student</option>
<option value="teacher">Teacher</option>
</select>
-- Do not forget to remove hidden user_type field if you do this. --