![]() |
|
#1
|
|||
|
|||
Please help! Select box problem!Hi I am relatively new to php and am trying to create 2 list boxes- one listing countries and another listing regions within those countries. I am using a mysql database table (Villa) with the following fields:
villaID{PK}, villaName, location, region, price (location contains the countries) I am trying to create a form which lists the regions for a particular country once that country is selected. Here is the code so far: PHP Code:
I would be extremely grateful for any help/ advice, Many thanks Julie x x x ![]() |
|
#2
|
|||
|
|||
|
Have it so that once you select a country, it resets the page, with the extension ?cnt=countryname. Then, create a new select box based on $_GET[''], and have that read the database WHERE location='{$_GET['cnt']}' and build that list.
|
|
#3
|
|||
|
|||
reok thanks x
|
Recent GIDBlog
A Week in Kuwait by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CD burner will not burn, new problem | sdshaman | Computer Hardware Forum | 4 | 06-Feb-2008 23:17 |
| Please help! Insert into database problem | robsmith | MySQL / PHP Forum | 1 | 24-Apr-2005 03:44 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 07:53 |
| select problem | zuzupus | MySQL / PHP Forum | 0 | 15-Aug-2003 07:25 |
| combo box select problem | zuzupus | MySQL / PHP Forum | 2 | 23-Jul-2003 11:25 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The