QF: Optional Passwords & Comparison

From: Date: Wed, 23 Jun 2004 19:42:42 +0000
Subject: QF: Optional Passwords & Comparison
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13285@lists.php.net to get a copy of this message
Hello, I'm trying to create two password boxes that will be used for entering a password and for verifying that password. The problem I'm having arises due to the fact that in this application setting a password is optional. However, if the user enters text into _either_ text box, I want to throw an error in the case that they don't match (even if the other box is empty). I'm using the compare rule to check that they are the same, but I need it to be checked even if one of them is empty. I'm not sure how to go about this because they are not required. If a password had to be set, I would just set it to be required and move on, but the password is optional. Any help is appreciated, Mark Drago -- /////////////////////////////////////////////////////////////// // // // Mark Drago Phone: 631-434-6600 // // Associate Software Developer Email: mdrago@bascom.com // // BASCOM Global Internet Services, Inc. // // officebocce.com // ///////////////////////////////////////////////////////////////

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