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/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php