PHP sending form data to the database

I think that you should start from the beginnig studing PHP, HTML and SQL.

The action in the html form indicate where the script should send the data after the submission. You have to create a php script that grab that data from POST and save them to the database using SQL. Php will not do that for you automatically.

Second is not a good idea have two different pages with the same data, if you will change one you shoul remember to edit also the other form, so the best thing is create a file just for the form and then include it.

Have a look at this link to understand how to create a form and save data into the database:

Leave a Comment