15 Mar 06:22
HTML::Template + validation = strange behavior?
Marie Shvartsapel <maries <at> thecsl.org>
2005-03-15 05:22:55 GMT
2005-03-15 05:22:55 GMT
Hello,
I'm new to the FormBuilder and to this list, so please excuse me if this has
been discussed already.
I am trying to use HTML::Template template + validation functionality of the
FB. I turned off JavaScript and want to use server side validation only.
Let me describe the scenario in short: Form is displayed, submitted (with
blank fields), redisplayed with error messages, submitted again (again with
blank values). Now the fun part: All of my visible form elements get
doubled!
Am I not using FB or template correctly or this is "a feature" of FB?
Ok, a little clarification - it seems to be happening when I leave the field
blank without trying to fill it in, just submit it again , whereas this
problem does not seem to occur when some other not-empty invalid value was
provided and left unchanged...
I agree that this is not very typical usage, but hey, you can overlook one
of the values if you are working with a long form.
I have created very simple test script to make sure nothing else gets in the
way.
You can test it for yourself here:
http://maries.thecsl.org/cgi-bin/clearinghouse/test.pl (see code below)
Another detail - I'm using "keepextras"set to 1. Not sure if this might be
related.
A little bonus question: Is my understanding correct that I have to
(Continue reading)
RSS Feed