首页 > 解决方案 > 在我的 html 页面中向输入的手机号码发送 otp 并进行验证

问题描述

Send OTP当我按下按钮时,我希望我的 html 页面向输入文本中给出的手机号码发送 OTP 。在提供 OTP 作为输入后,我希望我的网页验证它是否与发送到移动设备的 OTP 相同。我如何实现这一目标?

这是我的html代码:

<html lang="en" dir="ltr">
   <head>
      <title>registration</title>
   </head>

   <body>
      
        <div class="registration_content">
            <h2 id="patient_status">status</h2>
            <p id="phone">Enter your contact number : <input type="tel" id="tel" placeholder="10 digit mobile number" style="font-family:cursive;"></input></p>
            <input id="register" type="button" value="Send OTP"></button>
            <span class="container"></span>

        </div>

        
   </body>
</html>

标签: javascriptphphtml

解决方案



推荐阅读