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

From: Date: Thu, 03 May 2007 21:27:41 +0000
Subject: Re: Quickform: how to check two fields in one function using registerRule()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27199@lists.php.net to get a copy of this message
On 5/3/07, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:
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?
Please only send one copy of your messages to the list. It looks like rules in general are assumed to relate to one field but rules such as the built-in Compare take 2 fields. Try checking that one. -- Justin Patrin

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