francoisp Posted May 1, 2003 Share Posted May 1, 2003 Hi there I need help on 2 select boxes. If data is selected in SelectBox 1 then the data on SelectBox 2 must change accordingly ie Select City in SelectBox1 (from database) then the SelectBox2 (also from Database) must contain the values of the Suburbs relating to the City ? Is there a way to do this :?: Thx Francois Quote Link to comment https://forums.phpfreaks.com/topic/419-2-select-boxes-one-influences-the-other/ Share on other sites More sharing options...
effigy Posted May 1, 2003 Share Posted May 1, 2003 you can have the first select submit the form onchange, passing its selected value to the page which creates another select box with options depending on what was passed. you could also use javascript to populate another select, but the suburbs sound very database driven. Quote Link to comment https://forums.phpfreaks.com/topic/419-2-select-boxes-one-influences-the-other/#findComment-1410 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.