Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help me to set up sms verification on my website. i need a sample project in which i can make changes and use? any help?

What I have tried:

php working code, and also tried implementing the server side code in php, which was successful but now i a m confused to create the client side
Updated 28-Feb-16 6:40am

1 solution

Just add a new table to the database to store the key. You may want to create a new column if you don't want to add a new table. In that column, you should store the key that is going to be sent for the verification purposes.

Then send the key to their phone numbers. You would need to use a gateway service to send the messages through SMS to their mobile phone. You can use services like Twilio or so on. PHP would just be used to make things work.

Now if you have done what I told you previously (in previous 2 paragraphs) then you are just going to ask them for their phone numbers and then send them a verification code. Verification is just like authentication. You are going to test their phone number and verification code, if the code is for the current phone number, then you are going to verify their account process.

A good example is: Build a Simple Phone Verification with Twilio, PHP, MySQL, and jQuery[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900