Re: Query a databaes without refreshing the page

From: Date: Mon, 21 Apr 2003 17:57:23 +0000
Subject: Re: Query a databaes without refreshing the page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144677@lists.php.net to get a copy of this message
This can be done by using javascript. When user selects from the first combo box, open a new small window and use that window to send a request to host , get the data back from mysql and then use javascript again to populate the second combo box in the parent page. You can also use Frames instead of opening a new window(In this case using an invisible Frame ) you can achieve the same result. HTH R'twick "Fernando Shayani" <fernando_shayani@yahoo.com.br> wrote in message news:b81aq3$pgo$1@main.gmane.org... > Is there any way that I can do this: > > I have a page with 2 combo boxes. The first one is the COUNTRY. When the > page loads, the PHP get the list of countrys from the MySQL and insert the > values on the combo box. Then, I select on the combo, the country, for > example, USA. > AFTER THIS, without refreshing the page, I need that the second combo box > automatic loads the list of cities of USA. > > Is there any way to do this? > > >

« previous php.general (#144677) next »