时时商务社区
标题:
PHP jQuery表单,带验证具体实现方法
[打印本页]
作者:
qz234
时间:
2018-2-14 06:00
Email检测,密码重复检测,可以用于表单发送的各种环境,例如发送反馈,注册帐号
[U]复制代码[/U] 代码如下:
Invalid Name:
We want names with more than 3 letters!
Invalid E-mail:
Stop cowboy! Type a valid e-mail please
Passwords are invalid:
Passwords doesn't match or are invalid!
Ivalid message:
Type a message with at least with 10 letters
Congratulations!
All fields are OK ;)
Name
What's your name?
E-mail
Valid E-mail please, you will need it to log in!
Password
At least 5 characters: letters, numbers and '_'
Confirm Password
Confirm password
Message
validation.php
[U]复制代码[/U] 代码如下:
5;
}
function validateMessage($message){
//if it's NOT valid
if(strlen($message)
您可能感兴趣的文章:
php下常用表单验证的正则表达式
php 表单验证实现代码
PHP开发中常用的三个表单验证函数使用小结
PHP 基于文件头的文件类型验证类函数
php用户注册页面利用js进行表单验证具体实例
php基于表单密码验证与HTTP验证用法实例
php实现通用的信用卡验证类
php编写的一个E-mail验证类
php常用表单验证类用法实例
欢迎光临 时时商务社区 (http://bbs.4435.cn/)
Powered by Discuz! X3.2