Listbox -- issue -- PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vssp
    Contributor
    • Jul 2006
    • 268

    #1

    Listbox -- issue -- PHP

    Hi friends

    I need your help.I am using two list box in my application. when i select one list box value corresponding values only listed in tha another list box without page refresh. Two listbox values are stored in database.

    if i select the one listbox values get the vlaue id and pass the id , get the related values and list the another list box. But now page can refersh and store the another list box.

    I need page not refresh and stored the values .

    Please send me any idea

    Thanks
    Prabu
  • bevort
    New Member
    • Jul 2006
    • 53

    #2
    You have to switch to Javascripting in this case

    Make a function (using PHP, just echo the content of the function from your database ) that contains the values of the 2nd listbox in a case structure that responde on the content of the first listbox. Call the function with the AfterUpdate event from the 1st listbox. The current value of this listbox will couse the case structure to fill the second with the correct information

    You will certainly find some examples here or at Hotscrits.com or Javascript.com amongst many other

    Vincent

    Comment

    Working...