In message <AANLkTi=-c3O3LRmuYtmuB37LFNfkoC7nJEYGLXeuPbYx@xxxxxxxxxxxxxx >, vijaya lakshmi <vijayalakshmi6jun@xxxxxxxxx> writes >but i cant use that php action method because the list wil get populated >,will select from the populated list only then hit submit. You should not use the word "list", if you mean SELECT options. It is confusing, because a list is something else. If you are talking about Thomas' suggestion, you choose from apples or oranges, which are in the SELECT options, press select, the page is loaded a second time, and your choice is presented in $_GET["product"] The action and method simply call the same page, for a second time, when the user presses SUBMIT. > >On Wed, Sep 15, 2010 at 8:44 PM, Thomas Birchmire <tbirchmire@xxxxxxx>wrote: > >> >> >> It was unclear to me what the question was. >> >> >> Internet Content Developer >> tbirchmire@xxxxxxx <tbirchmire%40usa.net> >> >> ------ Original Message ------ >> Received: Wed, 15 Sep 2010 11:06:26 AM EDT >> From: Pete <cgrp@xxxxxxxxxxxx <cgrp%40hotcosta.com>> >> To: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com> >> Subject: Re: select option value into a variable >> >> > In message <552oioohS3104S02.1284561284@xxxxxxxxxxxxxxxxx<552oioohS3104S02.1 >284561284%40web02.cms.usa.net>>, >> Thomas >> > Birchmire <tbirchmire@xxxxxxx <tbirchmire%40usa.net>> writes >> > >Here's a pure php version. >> > > >> > ><html> >> > ><head> >> > ><title>Display Option</title> >> > > >> > ></head> >> > ><body> >> > > >> > ><form name="form1" method="GET" action="select.php"> >> > > >> > >ex: <select name="product"> >> > ><option value="a">Apple</option> >> > ><option value="b">Orange</option> >> > ></select> >> > > >> > ><p><input TYPE="submit" </p> >> > > >> > ></form> >> > > >> > ><?php $option_var = $_GET["product"]; >> > >print "Option Var = " . $option_var . "<br />"; >> > >?> >> > ></body> >> > ></html> >> > > >> > > >> > >Internet Content Developer >> > >tbirchmire@xxxxxxx <tbirchmire%40usa.net> >> > >> > Which is fine for a single SELECT. But doesn't give a "list box" >> > >> > I know what the OP wrote: >> > > > >so if i select apple then another list box is to be generated. >> > > > > >> > > > >if i select orange a diffrent list box should be generated. >> > using the term "list box". >> > >> > But I felt that he meant cascading selects. >> > >> > This one "cascades" >> > http://php-ajax-code.blogspot.com/2007/07/ajax-triple-dropdown-with- >> > states-cities.html >> > >> > -- Pete Clark Local sites for Local People http://localFaces.net