user registration and profile

Hi all,

I’m new to this board and thought I’d start by submitting a question. I started using yii a few weeks ago for this web service am developing. The application requires users to register/create account like many applications.But in the early stages of the development am limiting the user types to three students,teachers,and artists, depending on their roles in the application.

I created tables in database, tbl_student , tbl_teacher , tbl_artist and tbl_profile. And I was thinking when a user registers by choosing a role then the page he views is in accordance with the role he chose.This will be done when the user is logged in to the system.

Now my question is how do I let users choose their role upon registration? Since there are three different pages assigned to each of them accordingly.

Thanks in advance.

[color="#006400"]/* Moved from Tips, Snippets, … to Yii 1.1 General Discussion. */[/color]