]>
Dogcows Code - chaz/p5-CGI-Ex/blob - t/samples/generate_js.pl
7 my $js_path = "/cgi-bin/js";
8 my $form_name = "my_form";
10 'general as_hash_join' => "<br>\n<br>",
11 'general group_order' => [qw(username password)],
18 match
=> ['m/\d/', 'm/[a-z]/'],
19 match_error
=> "\$name Must contain a letter and a number",
25 my $val_obj = CGI
::Ex
::Validate-
>new;
26 my $val = $val_obj->generate_js($val_hash, $form_name, $js_path);
29 ### sample document out put
30 ### not that you should ever inline your html
31 $val_obj->cgix->content_type;
36 Username: <input type=text size=20 name=username><br>
37 <span class=error id=username_error></span><br>
38 Password: <input type=text size=20 name=password><br>
39 <span class=error id=password_error></span><br>
This page took 0.033406 seconds and 4 git commands to generate.