java 如何实现短信验证功能
<div class="phoneReg"><form name="myForm" id="myForm" action="registerSms.do" method="post">
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">您的手机号码:</td>
<td><input type="text" name="tel" id="tel" value="${tel }" /></td>
<td><span id="info" style="color:#125fa2"><a href="javascript:sms();">获取验证码</a></span></td>
</tr>
<tr>
<td align="right">短信验证码:</td>
<td><input type="text" name="sms" id="sms" /></td>
<td><span style="color:red;">${errorDesc }</span></td>
</tr>
<tr>
<td> </td>
<td>
<input type="button" onclick="regForm()" value="完成注册" style="background:#1f64a1;margin-top:15px;text-indent:0;color:#fff;border:0;width:98px;height:31px;font:14px '微软雅黑"/>
</td>
<td> </td>
</tr>
</table>
</form>
</div>