How do save data into a database with a button that is located different from the input form? this is my sample code