Re: QuickForm: Change value of submited field

From: Date: Thu, 18 Nov 2004 17:58:34 +0000
Subject: Re: QuickForm: Change value of submited field
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15643@lists.php.net to get a copy of this message
On Tue, 16 Nov 2004 19:51:21 +0100, Joel Junström <joel.junstrom@gmail.com> wrote: > Hi. > > The senario: > I have a form with a select field (defined_amount) and a text field > (user_amount). > > The problem: > I'm sending the form to another server where they take the > 'defined_amount' field (has to have that name) and does something.. > But! If the user has filled in the 'user_amount' field, I want it to > overwrite the 'defined_amount'. What do you mean by "sending the form to another server"? Is the form action some other server? In this case, you're going to have to write seom JS which copies the value of one into the other when the form is submitted. > > Am I making any sense? > > I' thought I could create a rule for it somehow but I'm so far unsuccesfull.. > -- Justin Patrin

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