手机号码确认 [英] Mobile Phone no. verification

查看:105
本文介绍了手机号码确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个网站.我要验证手机号.通过向用户的手机发送验证码,用户在注册页面上输入的信息.谁能给我指点我应该如何进行??

I am designing a website.I want to validate the mobile no. entered by the user on the registration page, by sending a verification code to his mobile phone. Can anyone give me pointers to how should i proceed with it??

推荐答案

有两种选择,具体取决于您的预算.

There are two options, depending on your budget.

选项1-购买一个SMS网关并将其安装在您的服务器上.然后,您可以从服务器端脚本中调用一个API,该API将发送SMS-您需要提供手机号码和文本内容.除非您的体积很大,否则这是较昂贵的选择.

Option 1 - buy an SMS gateway and install it on your server. You can then call an API from your server-side script that will send an SMS - you will need to supply the mobile phone number and the text content. This is the more expensive option unless you have a lot of volume.

选项2-使用SMS网关服务.在这种情况下,其他人将操作网关,然后您调用其API来发送消息.通常,您会购买一捆文字以使用此文字,因此费用取决于您购买的文字数量.

Option 2 - use an SMS gateway service. In this case, someone else operates the gateway and you call their API to send messages. You normally buy "bundles" of texts to use this, so the cost depends on the number of texts you buy.

这篇关于手机号码确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆