使用PHP验证打开购物车中的电话号码
OpenCart 3
<div class="form-group ">
<label class="col-sm-2 control-label" for="input-name"> another telephone</label>
<div class="col-sm-10">
<input type="text" name="another_telephone" value="{{another_telephone}}" class="form-control" placeholder="another telephone">
</div>
</div>
我在供应商商店表单中添加了自定义字段'另一个telephone'。 这是接受字母,数字和符号。
问题:我想验证我的字段是否有效电话号码。
opencart 3
<div class="form-group ">
<label class="col-sm-2 control-label" for="input-name"> another telephone</label>
<div class="col-sm-10">
<input type="text" name="another_telephone" value="{{another_telephone}}" class="form-control" placeholder="another telephone">
</div>
</div>
I have added a custom field 'another-telephone' in vendor store form.
which is accepting alphabets, numbers and symbols.
Question : I want to validate my field for valid phone number .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许我无法正确理解您的问题,但是如果您需要更改另一个电话,该手机是字母/数字模式
2(a,b,c)3(d,e,f) 4(g,h,i)5(j,k,l)6(m,n,0)7(p,q,r,s)8(t,u,v)9(w,w,x,y, z)
您可以尝试以下操作:Maybe i do not understand correctly your question, but if you need to change your another-phone which is in letters to the numbers by Letters/numbers pattern
2(A,B,C) 3(D,E,F) 4(G,H,I) 5(J,K,L) 6(M,N,0) 7(P,Q,R,S) 8(T,U,V) 9(W,X,Y,Z)
you can try this: