after verifying user phone number in a form, who to securely pass it for JS to PHP so I could save it in DB?

Viewed 40

form of user information including name, address,,, and phone number. At the phone number, I have used js with firebase to verify it and it works fine. Now with all in the user's information, I could POST and GET in PHP fine and insert to DB.

however, the user can easily change the number after verifying it and before submitting the form! after a search I know there is a way to verify UID token on the server-side with PHP, but couldn't understand how to do it! if you know a code that i could use please help.

if there is no way, how easy is it to overtake the JS validation and submit the form?

0 Answers
Related