Re: Quickform: no serverside validation when *not* submittingformto self url

From: Date: Wed, 07 Apr 2004 10:12:50 +0000
Subject: Re: Quickform: no serverside validation when *not* submittingformto self url
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11694@lists.php.net to get a copy of this message
Hi, mystuff@reva.co.uk wrote:
You didn't answer the whole question. In which file will you do this validation?
The file registration.php has all the quickform code, registration.php submits to process.php (process.php has no quickform code) registration.php is where I'd like quickform to do the validation.
Now a $100 question: how will registration.php validate the form if it is not called in any way *after* the form is submitted? By means of telepathy?
Would you complain about the dishwasher not doing your dishes if you never put them into it?
Yes, but first I'd need to buy a dishwasher. :( I've been told that quickform::controller can help here, unless you were thinking of another way.
It won't.
A question: how would you do validation if you were not using QuickForm?..
The old fashined way of validating each var from $_POST and reporting a message back, but that seemed unnecessary seeing as QuickForm has built in validation.
You didn't answer the whole question. In which file will you do this validation?
A bit like buying a Dishwasher, and then cleaning the dishes by hand ;-)
Would you complain about the dishwasher not doing your dishes if you never put them into it?
Is this a recognised problem? Any tips on an elegant solution of getting server side validation to work.
A question: how would you do validation if you were not using QuickForm?..


« previous php.pear.general (#11694) next »