Re: Quickform - shipping address same as billing checkbox

From: Date: Thu, 21 Oct 2004 21:53:35 +0000
Subject: Re: Quickform - shipping address same as billing checkbox
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15033@lists.php.net to get a copy of this message
So you're using QF and I assume you're doing client side validation? I would suggest making the billing address fields client rules, then make the shipping address required rules server-only.
Yeah, that's what I wound up doing but I used the getSubmitValues() method instead of $_POST. // apply rules for billing address $_submitted_values_arr = $form->getSubmitValues(); if(!isset($_submitted_values_arr['same_as'])) { // apply rules, no client side validation } I'll have to work on the JS at a later date, thanks. Any idea if there is an archive to search through for PEAR before posting to the list? - Erik Heerlein

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