RE: [PHP] Query a databaes without refreshing the page

From: Date: Mon, 21 Apr 2003 18:02:57 +0000
Subject: RE: [PHP] Query a databaes without refreshing the page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144680@lists.php.net to get a copy of this message
Because the page loads AFTER your script completes you would need to load your cities list into a javascript array on your output. Then use a bit of javascript and/or dhtml to display your list of cities when appropriate. - Nicole > -----Original Message----- > From: news [mailto:news@main.gmane.org]On Behalf Of Fernando Shayani > Sent: Monday, April 21, 2003 10:47 AM > To: php-general@lists.php.net > Subject: [PHP] Query a databaes without refreshing the page > > > 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? > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#144680) next »