What information do you want to store in the db?
Your form has an action, the action calls the php. Then in the php when the button is clicked (TRUE) then run a query to insert into the DB. Give me a little more info or a URL and I / We can help you out a little more.
And Anything that gr8gonzo suggests.
mohan singh
Use to data-table working concept to full fill your requirements
in data-table you can do live update import, export, copy, excel etc