Re: Drop down reload
| From: | Scott Houseman | Date: | Fri, 16 Aug 2002 12:10:09 +0000 |
| Subject: | Re: Drop down reload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112952@lists.php.net to get a copy of this message | ||
Hi there.
You would need to use JavaScript for this, specifically an onChange( ) event
for
the select field(s).
Your JavaScript should basically reload the page once an option has been
selected from the first
select field, passing through a variable containing the value of the option
which has just been selected, you can then use php to retrieve the
appropriate records for the second
select field when the page is reloaded.
Cheers
Scott
----- Original Message -----
From: "Christian Ista" <christian.ista@teledisnet.be>
To: <php-general@lists.php.net>
Sent: Friday, August 16, 2002 1:53 PM
Subject: [PHP] Drop down reload
> Hello,
>
> Could you tell me if it possible to reload the current page when I
> select a value in a drop down ?
>
> On a page, I have 2 drop down, the content on the first one come from
> the database. The content of the second one too (from database) but
> depend of the first drop down value.
>
> An idea to do that ?
>
> Bye
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>