iMIS 10.0

How to create a new Chapter by code

My version is 15.0.3.
I want to know how to create a new Chapter by code. When user register as a new member via web page, we allow user input new chapter if they cannot find in existing chapters. Is there any sample code about this?

Thanks.

Problem when trying to bill a single nondues subscription

My version is 15.0.3.

I got a problem when trying to use 'CContact.BillSingleNonDuesSubscription(...)'.
The routine is as the following:
If a client want to register as a professional member, he/she inputs basic information in the first page, then click 'submit'. System creates a new user, then automatically log in and redirect to the payment page.
In this payment page, I was trying to define a new CSubscription and call BillSingleNonDuesSubscription function which require two parameters -- productCode and effectiveDate. My code to call this function is like this:

User authentication

I am trying to connect the iBO's (version 10) up to a website with PHP. I have successfully managed to get PHP communication to our database via the iBO's.

One thing I cannot work out from the documentation is how to authenticate a user. Can someone give me any pointers on this?

I am not sure that my logic is correct. This is the flow of my routine so far:
Create an iboUserSecurity.CUser instance