First, you need to use related extension for MsSQL of PHP. You can find it here. In addition, you can find some code samples in this stackoverflow question. Please research before create new question or if you already did some research let community know what you do and what you get as error.
Email codedump link for how to connect Microsoft SQL data base with html form and submit data to it