使用 PHP 通过 OTP SMS 验证手机号码

时间:2020-12-30 05:27:27

标签: php api sms

使用 PHP 通过 OTP 短信验证手机号码不起作用。我将我的文件放在服务器中,我在 SMS 警报帐户中考虑帐户并生成一个 api 密钥,然后将该 api 放在验证文件中。 http://smsnew.keralaq.com/how-to-implement-otp-sms-mobile-verification-in-php-with-textlocal/ 我工作的网址。请给出一个解决方案。我正在按照此代码实现我的网站 https://phppot.com/php/how-to-implement-otp-sms-mobile-verification-in-php-with-textlocal/

    <!DOCTYPE html>
    <html>
    <head>
    <title>How to Implement OTP SMS Mobile Verification in PHP with TextLocal</title>
    <link href="style.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
    
        <div class="container">
            <div class="error"></div>
            <form id="frm-mobile-verification">
                <div class="form-heading">Mobile Number Verification</div>
    
                <div class="form-row">
                    <input type="number" id="mobile" class="form-input"
                        placeholder="Enter the 10 digit mobile">
                </div>
    
                <input type="button" class="btnSubmit" value="Send OTP"
                    onClick="sendOTP();">
            </form>
        </div>
            <script src="jquery-3.2.1.min.js" type="text/javascript"></script>
        <script src="verification.js"></script>
    </body>
    </html>
       

0 个答案:

没有答案