Re: select option value into a variable

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

 



It was unclear to me what the question was.



Internet Content Developer
tbirchmire@xxxxxxx


------ Original Message ------
Received: Wed, 15 Sep 2010 11:06:26 AM EDT
From: Pete <cgrp@xxxxxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Subject: Re:  select option value into a variable

> In message <552oioohS3104S02.1284561284@xxxxxxxxxxxxxxxxx>, Thomas
> Birchmire <tbirchmire@xxxxxxx> 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
> 
> 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
> 



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

  Powered by Linux