Hello Smith,
Thanks for response, I followed your guide and i have created Role field on Registration page. I want to write coding for the Roles which i defined,so can you let me know from where i have to start the coding and what step i have to follow for the coding. If possible then give some brief idea so i can do coding part.