yandoo Posted February 2, 2008 Share Posted February 2, 2008 Hi there, Im just wondering which approch to take. Im building a form that is has 2 list/menu's. The first is dislpays options from a queried table in db and the second matches the records(another query) from the first list/menu with the second. So far i have managed to do this by having the form updated over 2 stages, after bit of looking around i hear it can be done with ajax? Can it be done javascript alone (integrating with the queries to db)?? Which way is better, Updating over 2 stages or using ajax? or javascript alone (if it can be done?) Thank You Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 2, 2008 Share Posted February 2, 2008 The only way to have database interaction with your javascript is to use ajax; unless you use php to post your database query for your first select menu; back to your second select menu. Quote Link to comment Share on other sites More sharing options...
yandoo Posted February 2, 2008 Author Share Posted February 2, 2008 Hi, But which is best approch would you say?? Thanks Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted February 2, 2008 Share Posted February 2, 2008 I would go with AJAX; that way, you page does not have to reload each time you query your database. Quote Link to comment 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.