Moron Posted January 17, 2008 Share Posted January 17, 2008 There are a bazillion javascript dropdown menus out there and I'm going to be using one. My question is, how do I use a variable, selected by a Javascript dropdown, in a query? In specific, this will be for employee paystubs online. They'll select their pay period ending date from the menu, then the query will be ran using that date in the WHERE statement. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/86457-using-javascript-variable-in-a-query/ Share on other sites More sharing options...
trq Posted January 17, 2008 Share Posted January 17, 2008 The variable will need to be submitted via either POST, GET or by using some form of Ajax back to the server so php can use it in a query. Quote Link to comment https://forums.phpfreaks.com/topic/86457-using-javascript-variable-in-a-query/#findComment-441800 Share on other sites More sharing options...
Moron Posted January 17, 2008 Author Share Posted January 17, 2008 The variable will need to be submitted via either POST, GET or by using some form of Ajax back to the server so php can use it in a query. That's what I assumed, but I can't seem to find examples anywhere. Quote Link to comment https://forums.phpfreaks.com/topic/86457-using-javascript-variable-in-a-query/#findComment-441801 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.