]> Dogcows Code - chaz/p5-CGI-Ex/blobdiff - samples/validate_js_1_onsubmit.html
CGI::Ex 2.27
[chaz/p5-CGI-Ex] / samples / validate_js_1_onsubmit.html
index f420527a02e0a28176264011b7b0c1b715b1eb9d..ec9162bedd524dd92e08114b1a6947460451dd94 100644 (file)
@@ -39,8 +39,8 @@ if (! document.validate) {
 <tr>
   <td valign=top>Verify Password:</td>
   <td>
-    <input type=password size=20 name=password2><br>
-    <span id=password2_error class=error></span>
+    <input type=password size=20 name=verify_password><br>
+    <span id=verify_password_error class=error></span>
   </td>
 </tr>
 <tr>
@@ -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"
   },
This page took 0.022872 seconds and 4 git commands to generate.