Hi all, Quick question ... I want to do something that I can in Perl using Template toolkit and I was hoping that someone could point me at some code showing how to achieve this. When a user fills out a form and hits submit, I want the action page / method to check that all required fields are filled out and all filled out values are valid for the field. If there are any values that are not correct, I want to display the original form, with all fields that did have values prefilled and something like * Invalid date format Or * Required field In red under the field that is wrong or not filled out. Is anyone doing this and could someone point me at some code if there is some. TIA, -- Wayne Pascoe <wayne.pascoe@ehsrealtime.com> The price of freedom is eternal vigilance - Thomas Jefferson
At 11:17 AM 3/14/2002 +0000, Wayne Pascoe wrote:
I want to do something that I can in Perl using Template toolkit and I was hoping that someone could point me at some code showing how to achieve this.
I bet you Formulator does what you want and much more. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management
On Thu, 14 Mar 2002, Wayne Pascoe wrote:
Hi all,
Quick question ...
I want to do something that I can in Perl using Template toolkit and I was hoping that someone could point me at some code showing how to achieve this.
When a user fills out a form and hits submit, I want the action page / method to check that all required fields are filled out and all filled out values are valid for the field.
If there are any values that are not correct, I want to display the original form, with all fields that did have values prefilled and something like * Invalid date format Or * Required field In red under the field that is wrong or not filled out.
Get the product Formulator from zope.org and look at the examples. -- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant
participants (3)
-
Joel Burton -
Stephan Richter -
Wayne Pascoe