RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms
| From: | Ashley Sheridan | Date: | Wed, 26 May 2010 12:22:56 +0000 |
| Subject: | RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305543@lists.php.net to get a copy of this message | ||
On Wed, 2010-05-26 at 08:28 -0400, Alice Wei wrote:
> On Tue, 2010-05-25 at 15:41 -0400, Alice Wei wrote:
>
> > Date: Tue, 25 May 2010 13:40:44 -0400
> > Subject: Re: [PHP]
> Select Values Didn't Get Passed in From Two Different Forms
> >
> From: marc.guay@gmail.com
> > To: ajwei@alumni.iu.edu
> >
> >
> > I would like to take those values away into my third form, which
> is what you
> > > see with the hidden. If they are not populated,
> then how come I could see
> > > the drop down menus?
> >
> >
> So you're expecting the values selected in the first two forms to
> >
> populate the values of the hidden fields in the third form? Why not
> >
> wrap the whole thing in a single form? Do test_getrss.php and
> >
> test_getrss2.php perform anything useful or are they just hanging
> >
> around?
>
> No, the fields are populated in the first and second
> form, form1 and form2. What I want to do is to get the selections from
> both forms and pass them on to the third. Does this make sense? For some
> reason, the text input and the semester drop down menu result can be
> passed to process.php, but the results that I try to select from the
> first and second does not. So, the form is not passing the results of
> what I had from the radio button selections.
>
> To illustrate, the
> second looks something like this:
>
> echo "<select
> name='end_location'>";
> while($nt=mysql_fetch_array($result)){//Array
> or records stored in $nt
> echo "<option
> value=$nt[0]>$nt[0]</option>";
> }
> echo "</select>";
>
> How
> can I pass the values of what I picked in end_location here to
> process.php?
>
> Thanks for your help.
>
> Alice
>
> _________________________________________________________________
> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail.
>
> http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
>
>
>
>
>
> You can only pass results from both forms if you duplicate the results of one in the other and
> then submit that one. You can't submit two forms at the same time. Why do they have to be two
> forms anyway?
>
>
> Well, two of them are created with Ajax that are passed through PHP, so you select one drop
> down menu are a time, as the drop down menu comes from what you select from a radio button. The
> results are dynamically. so I don't think they are even created at the same time. Does this
> help in explaining what I am trying to accomplish?
>
> Thanks.
>
>
>
>
>
> Thanks,
>
> Ash
>
> http://www.ashleysheridan.co.uk
>
>
>
>
> You should get the Ajax to modify the first form. It's a lot easier than creating a second
> form that uses more Ajax to duplicate any selected values from the first. Have a look at the JQuery
> library, it makes a lot of the Javascript end a lot easier.
>
> I know this is not a PHP question, but could you direct me to something more specific on what
> I should do here? I am really new to Ajax.
>
>
>
>
>
>
> Thanks,
>
> Ash
>
> http://www.ashleysheridan.co.uk
>
>
>
>
>
>
>
>
> _________________________________________________________________
> Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
>
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
Try a google search for jquery. The first site that comes up contains
all the documentation and examples to get you started.
Thanks,
Ash
http://www.ashleysheridan.co.uk