自定义表单的单行文本框如何验证输入的手机号是否为真实手机号
表单代码如下
<form name="myform1" action="/plus/form/form.asp" target="hidform1" method="post">
<table width="100%" border="0" cellspacing="2" cellpadding="1">
<input type="hidden" value="Save" name="action"/>
<input type="hidden" value="1" name="id"/>
<input type="hidden" value="{$ChannelID}" name="m"/>
<input type="hidden" value="{$InfoID}" name="d"/>
<input type="hidden" value="{$ToUserName}" id="tousername" name="tousername"/>
<tr class="tdbg">
<td align="right" class="lefttdbg">联系方式:</td>
<td><input type="text" maxlength="11" class="upfile" style="width:200px" id="KS_lxfs" name="KS_lxfs" value="" placeholder="输入联系方式"><span class="formstrck1" id="联系方式|%|KS_lxfs|%|1" style="display:none" ></span></td>
</tr>
<tr><td colspan="2" class="subtdbg" align="center"><input type="submit" value="确认提交" name="submit1"></td></tr>
</table>
</form>