I am developing a form where I would like to save the data of my Form to an Online Database.

What I have Is the Userform which has (For Ex) two text fields and a SUBMIT button. What I want is that when the user Clicks the submit button, It should save the form details in the table which I have created online in a cPanel. What I don't know is how to I connect to that database. Please help me as this might help me move up- the ladder in the current job that I am in.