How i made a button to send data to firebase?

I have 4 random input boxes and I want to send when I press a button