combobox and Data base

how we can display data in to combox with respect to other

Page 1 of 1

2 Replies - 732 Views - Last Post: 30 September 2010 - 08:05 AM Rate Topic: -----

#1 shoaib.virk4u  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-September 10

combobox and Data base

Posted 30 September 2010 - 04:13 AM

how we can display data in to combox with respect to other... e.g if i select country in one combo, in the second combo their are all the corespounding cities ...
Is This A Good Question/Topic? 0
  • +

Replies To: combobox and Data base

#2 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 1004
  • View blog
  • Posts: 3,562
  • Joined: 05-June 09

Re: combobox and Data base

Posted 30 September 2010 - 05:09 AM

This is a Javascript question, not a PHP one.

You do however need to initially create the 2 comboboxes (well, their data) in PHP providing you're driving them from a DB, then narrow it down using Javascript.
Was This Post Helpful? 0
  • +
  • -

#3 Jstall  Icon User is offline

  • Lurker
  • member icon

Reputation: 434
  • View blog
  • Posts: 1,042
  • Joined: 08-March 09

Re: combobox and Data base

Posted 30 September 2010 - 08:05 AM

Assuming your pulling the data from your database and that its structured in such a way that states have country ids and cities have state ids you could dynamically populate your state box based on the value of your country box's selected item. What have you tried so far?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1