External Form in my site

Hi! I need a help with some issue. I need to create a form, then when the person write all te information on this form, all de information will go to a databasse, external of the site, in other system with another company.

I have the system IP, the codes, but i really don’t know how to conect the form with this database.

Someone can help me?