Jump to content


OnSelect fleids

  • Please log in to reply
1 reply to this topic

#1 petervdvoort

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 12 June 2006 - 09:01 AM

Hello All,

I have an Question.

I use a form with two select fields. If I select an item in field one. De page has to auto update the page so that the data can be loaded in the second field.

My Question is how does this work?



#2 Barand

  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 12 June 2006 - 10:23 AM

If you have a data structure like

country          city
---------        -----------
id        --+    id
ctry_name   |    city_name
            +--< ctry_id

then you can use something like the baaSelect class in my sig. This will create the required javascript arrays and functions to update the second select when the first changes.

Alternatively, you can use [a href=\"http://members.aol.com/barryaandrew/xmlhttp/article.html\" target=\"_blank\"]AJAX / xmlhttp[/a]
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users