X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-CGI-Ex;a=blobdiff_plain;f=samples%2Fvalidate_js_1_onsubmit.html;fp=samples%2Fvalidate_js_1_onsubmit.html;h=ec9162bedd524dd92e08114b1a6947460451dd94;hp=f420527a02e0a28176264011b7b0c1b715b1eb9d;hb=febed4ec71f803b083c3e61b82b9464e9bfb0992;hpb=ed00221d27dfab1e82ec2ea040ab4c399a91c545
diff --git a/samples/validate_js_1_onsubmit.html b/samples/validate_js_1_onsubmit.html
index f420527..ec9162b 100644
--- a/samples/validate_js_1_onsubmit.html
+++ b/samples/validate_js_1_onsubmit.html
@@ -39,8 +39,8 @@ if (! document.validate) {
Verify Password: |
-
-
+
+
|
@@ -121,23 +121,20 @@ if (! document.validate) {
document.validation = {
"group no_confirm": 1,
"group no_alert": 1,
- "group order": ["username", "password", "password2", "email", "email2", "state", "region", "s_r_combo", "enum", "compare", "checkone", "checktwo", "foo"],
+ "group order": ["username", "password", "verify_password", "email", "email2", "state", "region", "s_r_combo", "enum", "compare", "checkone", "checktwo", "foo"],
username: {
- name: "Username",
required: 1,
min_len: 3,
max_len: 30
},
password: {
- name: "Password",
required: 1,
min_len: 6,
max_len: 30,
match: ["m/\\d/", "m/[a-z]/"],
match_error: "$name must contain both a letter and a number."
},
- password2: {
- name: "Verify password",
+ verify_password: {
equals: "password",
equals_name: "password"
},