How can I implement the verification code delivery function to my mobile phone? (It is best to have instances)

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.