Re: QuickForm: having trouble processing form with two URL parameters

From: Date: Wed, 12 Jan 2005 02:16:00 +0000
Subject: Re: QuickForm: having trouble processing form with two URL parameters
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16886@lists.php.net to get a copy of this message
On Tue, 11 Jan 2005 14:33:33 -0800 (PST), l Burnerheimerton <lburnerheimerton@yahoo.com> wrote: > I have one form, FORM_A, that I have coded to edit > existing or create new housing registrations. > > A housing reg has several fields but the two important > fields here, regID and houseID. > > If I want to create a new reg, I pass it the house_ID > in the URL. If I want to edit a reg, I pass it the > reg_ID. > > It works great until I added a security check which > checks the neighborhoodID (through a join table > related to the houseID)against the session variable > the user has which is the neighborhoodID. > > I hope this is making sense so far. > > The trouble comes when the forms processes because it > loses all URL parameters. I have the URL parameters > in hidden fields but those appear to be "re-assigned" > during processing because when the form is submitted, > there are no URL parameters to $_GET. > > I'm sure I'm not the first person to come across this. > > Any ideas are appreciated! > If you put them in hidden element in the form, they will come through just fine. If the form is POSTed, they'll be in $_POST. -- Justin Patrin

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