Re: your method for validating forms

From: Date: Thu, 02 Oct 2003 02:26:25 +0000
Subject: Re: your method for validating forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164658@lists.php.net to get a copy of this message
Hello, On 10/01/2003 08:43 PM, Chris W. Parker wrote:
$_SESSION['form_errors'] = validateFormData($formdata); redirect("to_the_previous_page.php");
You may want to study how this classic form validation and generation class works. It generates the necessary Javascript to validate on the client side and uses the class methods to validate on the server side. It makes it simple to generate, validate and process a form in the same script, thus avoiding needless server access roundtrips that only slow down the sites for the users. http://www.phpclasses.org/formsgeneration -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/

« previous php.general (#164658) next »