The students elected him secretary.

What is your question?

Tell him "congratulations" from me.

In order to determine who the students elected as secretary, you would need additional context or information. Without further details, it is not possible to determine the specific person whom the students elected for the position of secretary.