RE: Select Values Didn't Get Passed in From Two Different Forms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Subject: Re:  Select Values Didn't Get Passed in From Two Different Forms
From: ash@xxxxxxxxxxxxxxxxxxxx
To: ajwei@xxxxxxxxxxxxx
CC: php-general@xxxxxxxxxxxxx
Date: Tue, 25 May 2010 20:37:29 +0100






  
  


On Tue, 2010-05-25 at 15:41 -0400, Alice Wei wrote:

> Date: Tue, 25 May 2010 13:40:44 -0400
> Subject: Re:  
Select Values Didn't Get Passed in From Two Different Forms
> 
From: marc.guay@xxxxxxxxx
> To: ajwei@xxxxxxxxxxxxx
> 
>
 > 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







 		 	   		  
_________________________________________________________________
The New Busy is not the old 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_3

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux