So I created a web page with HTML5 and js. I'm trying to get some data from that web page and save it in a database made in MySQL. How is the best way to connect my web page with a database. I really dont know much about this, if is not possible, how does a normal web page where you fill a form works?, how do they get the data from the form? .
Directing from your HTML isn´t possible, you should use an api call or something that handles the connection... Look a similar questions and answer at Can JavaScript connect with MySQL?