javascript - 在我的 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>
解决方案
推荐阅读
- 3d - 如何在python中获得dicom切片的3D重建?
- android - 为什么我的 android 应用在 POST 方法后没有响应?
- sql-server - 找出函数在数据库中使用了多少次
- python - 如何将二维列表中的值分配给变量
- python - 用于networkx添加节点的嵌套for循环
- r - 对于初学者来说,度量和非度量 MDS 有什么区别?
- php - 获取一年中每个月的总计,包括没有结果的月份
- flutter - 尝试通过传递到 Flutter 中的自定义小部件的回调来启动外部 url
- java - 在用户键入时编辑 shell 前缀
- python - 如何在 Python 中设置 Visual Studio 测试特征?