Ken2k7 Posted August 30, 2007 Share Posted August 30, 2007 I know PHP is a server-side language, so it's not client-sided. What I want to do is have a <select> dropdown with options and I want the page to refresh itself and display some information on that option. The problem is that since PHP isn't client-sided, I don't know how to get the value of the selected option and display the relevant info on that option. Any ideas on how to do this with PHP? Quote Link to comment https://forums.phpfreaks.com/topic/67331-option/ Share on other sites More sharing options...
ToonMariner Posted August 30, 2007 Share Posted August 30, 2007 nope ajax would be the best option and just updating content on certain elements, failing that its submitting the form that the select box is in to the same page so it can use that info to generate content. Quote Link to comment https://forums.phpfreaks.com/topic/67331-option/#findComment-337795 Share on other sites More sharing options...
Ken2k7 Posted August 30, 2007 Author Share Posted August 30, 2007 Okay well I was wondering how I can do that? I mean I can always make a form and have the user submit that data. You think that'll work? Quote Link to comment https://forums.phpfreaks.com/topic/67331-option/#findComment-337800 Share on other sites More sharing options...
ToonMariner Posted August 31, 2007 Share Posted August 31, 2007 very much so. Quote Link to comment https://forums.phpfreaks.com/topic/67331-option/#findComment-338610 Share on other sites More sharing options...
MadTechie Posted August 31, 2007 Share Posted August 31, 2007 may help Dynamic Dropdown php/Ajax Quote Link to comment https://forums.phpfreaks.com/topic/67331-option/#findComment-338615 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.