Re: dynamic drop down
| From: | Danny Brow | Date: | Wed, 01 Jun 2005 06:08:01 +0000 |
| Subject: | Re: dynamic drop down | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216123@lists.php.net to get a copy of this message | ||
On Tue, 2005-05-31 at 22:08 -0700, Richard Lynch wrote:
> On Tue, May 31, 2005 8:48 pm, Danny Brow said:
> > Could someone point me to an example with code for dynamic drop downs in
> > PHP? I would like to be able to have drop downs like "Select Country"
> > and another drop down show the states/provinces based on the selected
> > country.
>
> Well, the "dynamic" part of it isn't gonna be in PHP at all ; It's gonna
> be JavaScript.
I thought I'd have to use JS, but was hoping someone knew a way to do it
with PHP.
> You can Google for "JavaScript dynamic menus" to find what you want. Then
> you just need to use PHP to spew out the JavaScript you want to spew out,
> but that's no different than spewing out the HTML you want to spew out,
> really.
Tons on google, thanks,
Dan.
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc