How can I implement the verification code sending function to my mobile phone? Urgent (it is best to have an instance) to order or register now, you need to enter the mobile phone number, then send a verification code to the mobile phone, the user enters the verification code before the order or registration is complete, how to implement this function, hope you have an example. thank you. solution ------------------ save a verification code in the SESSION and send a text message to you. enter the verification code and submit the form to verify whether it is the same as recorded in the SESSION. -how can I implement the verification code sending function to my mobile phone? Urgent (it is best to have instances)
If you want to subscribe to or register now, you need to enter your mobile phone number and then send a verification code to your mobile phone. after you enter the verification code, you can subscribe to or register it. how can this function be implemented? please have an instance. thank you!
------ Solution --------------------
Store a verification code in the SESSION and send a text message to you. enter the verification code and submit the form to verify whether it is the same as recorded in the SESSION.
------ Solution --------------------
Find the SMS interface on the internet and it will give you the class or function integrated with php. After development, you can use it.
All interfaces are charged. A nice interface, a single text message. The general interface can be cheaper.
At present, there are some problems with the text message interface, and some provinces cannot receive the text message.
That is to say, if you have 10 thousand registered users, you must pay at least 1000 RMB!
Major companies directly sign contracts with China Mobile. Small websites cannot do this.
------ Solution --------------------
No one will spend precious time explaining the instance in detail.
I am busy working! Looking for technical questions is just a passing by. if you are a beginner, you can give me a rough answer!
------ Solution --------------------
First, you have to go to the carrier to apply for it. they will provide API and API documentation, which is quite simple to implement. some requests can be sent only when CURL or file_get_contents requests a parameter with a rule.