I want to register user as per role. in my project i have admin, mentor, staff and student role.
so user register form is based on his role like if any student is going to register him self the registration form should be like as name, dob, school name etc... if any mentor is going to register him self then registration form will his personal information, experience and professional/education detail.

I want to insert user data (user-id, password, email etc..) in user table and other information which based on role in other table like mentor table, staff table, student table.

Please help me regard this.

Comments

manishrustagi’s picture

please help me regard my problem

panis’s picture

Use hook_form_alter to alter the registration form depending on what type of user it is.
Use hook_nodeapi to save additional detail and registration information based on what was entered.

Look at documentation for both hooks for how to use them.

You will have to implement your own module to get this done.