![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | hi all, can someone guide me on how to do the following? i will have a drop down box, with the entries 'Manchester, London, Birmingham' etc. When you choose Manchester, it may depending on sub entries, pop up another drop down box with sub entries such as 'Man Utd., Man City' etc. If there are no sub entries, no new drop down is shown. This can lead to another drop down... E.g. London --> North --> Tottenham Hotspur etc. When submit is clicked, this entry is added to a MySQL database, any ideas? thanks |
|
| | #2 (permalink) |
| Civilians | abc wrote: > hi all, > can someone guide me on how to do the following? > > i will have a drop down box, with the entries 'Manchester, London, > Birmingham' etc. > > When you choose Manchester, it may depending on sub entries, pop up > another drop down box with sub entries such as 'Man Utd., Man City' etc. > If there are no sub entries, no new drop down is shown. > > This can lead to another drop down... E.g. London --> North --> Tottenham > Hotspur > > etc. > > When submit is clicked, this entry is added to a MySQL database, > > any ideas? > thanks You are asking for somebody to do programming for you. Hire somebody if you cant do it yourself. To give you some idea, I generate the "year" dropdown box in http://www.ipo-australia/scgi-bin/be...eport=advanced using Perl & mysql, as follows: sub select_year { my $all = @{getrec('select count(*) kount from ipo where visible="Y"')}->[0]->{kount}; print<<EOF; <table> <tr><td class=small><b> Year - multiple selection</b></td></tr> <tr><td> <SELECT size="10" name="year" multiple> @{[option('year','all',"All ($all)")]} EOF print option('year',"$_->{year_kount}","$_->{year_kount} ($_->{kount})") for @{getrec('select year(ipo_dt) year_kount, count(*) kount from ipo where visible="Y" and ipo_dt>19900101 group by year(ipo_dt)')}; print<<EOF; </SELECT> </tr></td></table> EOF } gtoomey |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using an IF/THEN from across 2 drop down (combo) boxes??? | Jim Sharky | Microsoft Applications | 1 | 10-03-2005 14:00 |
| Problem with FrontPage generated code when publishing to website | Bob Evans | Web Design | 0 | 02-02-2005 00:00 |
| Dynamically changing the input range of a Drop Down | DoctorV | Microsoft Applications | 1 | 11-16-2004 14:00 |
| Drop down boxes help | timrand | Microsoft Applications | 1 | 10-28-2004 12:00 |
| Worksheet drop boxes | iluminatae | Microsoft Applications | 2 | 08-04-2004 02:47 |
![]() | ![]() | ![]() |