Re: select option value into a variable

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

 



but i cant use that php action method because the list wil get populated
,will select from the populated list only then hit 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.1284561284%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 in Spain
> > http://localFaces.net
> >
>
>  
>



-- 
Thanks & Regards
Vijayalakshmi


[Non-text portions of this message have been removed]



------------------------------------

Are you looking for a PHP job?
Join the PHP Professionals directory Now!
http://www.phpclasses.org/jobs/
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-objects/join
    (Yahoo! ID required)

<*> To change settings via email:
    php-objects-digest@xxxxxxxxxxxxxxx 
    php-objects-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux