mrbuter Posted February 3, 2009 Share Posted February 3, 2009 Hey guys..tried googling but I normally get more help here. I'm trying to setup a page where users select a date from a dropdown menu and then the server queries a database to return valid times of the day associated with the selected date. Think of it as a reservation system I guess. If user 1 reserves something for March 2nd 2009 @ 5PM then User 2 can't reserve it for that same time so the server shouldn't show "5PM" on the 2nd dropdown menu (and ideally will have like a +/- 2 hours along with that but that's unrelated and I know how to do that part). It's the ajax that's confusing me because I haven't really ever worked with it. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
revraz Posted February 3, 2009 Share Posted February 3, 2009 And what are you using Ajax for, the dropdown picklist? Quote Link to comment Share on other sites More sharing options...
mrbuter Posted February 3, 2009 Author Share Posted February 3, 2009 And what are you using Ajax for, the dropdown picklist? Yes that's correct. When someone selects something in menu 1 it should call some kind of ajax function/script to populate menu 2 with the correct options. Quote Link to comment Share on other sites More sharing options...
revraz Posted February 4, 2009 Share Posted February 4, 2009 http://www.phpfreaks.com/forums/index.php/topic,115581.0.html Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted February 4, 2009 Share Posted February 4, 2009 ajax basicaly uses javascript function to call a php page and then somtimes uses teh result of that page and then using teh same javascript function inserts that result into you current page where ever. 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.