Logging on to ISP

Can someone point me to how I can logon to an ISP once I've established
a phone connection?  I want to make my own dialer.

Terry