summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-10-23 22:04:48 +0200
committerYorhel <git@yorhel.nl>2008-10-23 22:04:48 +0200
commit94e6c9968657a2bfb7f8bb7b754117e1a03c6a40 (patch)
tree5630040dc171554811a7a46e64f6ebc6816d5f2f
parent186510751606540c88dcd6f4d7e00c731cdac831 (diff)
The form validation test page is now properly XHTML 1.0 Strict
...can't really show off this awesome framework with incorrect examples, can we?
-rw-r--r--lib/VNDB/Handler/Forms.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Forms.pm b/lib/VNDB/Handler/Forms.pm
index 0d766c2..b75148b 100644
--- a/lib/VNDB/Handler/Forms.pm
+++ b/lib/VNDB/Handler/Forms.pm
@@ -35,13 +35,15 @@ qr/formtest/, sub {
h1 'Form Validation Test';
h2 'A Random Form...';
form action => '/formtest', method => 'post';
+ fieldset;
for (1..4) {
label for => 'string'.$_, '#'.$_;
input type => 'text', id => 'string'.$_, name => 'string'.$_,
value => $frm->{"string$_"}, size => 50, undef;
br undef;
}
- input type => 'submit', value => 'Submit!';
+ input type => 'submit', value => 'Submit!', undef;
+ end;
end;
h2 '@rules = ';
pre $rules;