Quickform: how to check two fields in one function using registerRule()

From: Date: Thu, 03 May 2007 20:22:22 +0000
Subject: Quickform: how to check two fields in one function using registerRule()
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27197@lists.php.net to get a copy of this message
I have a form where I need to validate the user is not repeating values already in a database table that has two primary keys. Thus I need two fields from the form to check but I only see this in examples: function f ($element_name,$element_value){ } Using quickform, how can I check two form fields in ONE function? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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