Liquid-Fire Posted June 3, 2006 Share Posted June 3, 2006 I thing I am going to need to know how to do for a project I am design in how to change or add form imput stuff for the fly with out having to read the page. What i mean is that let say the are 2 drop done boxes the first one a a yes and a no option adn the second as a list of stuff from a database. I am going to have the default value for the first box no and want to disable use, grayed out, the second. now when the user select yes in the first box, a tthat time I want the second box to be enable and ungrayed out. Now how would I pull something like this off? PHP? Javascript? I am really not sure how to do this so some help would be cool.Thank YouRyan Zec Quote Link to comment https://forums.phpfreaks.com/topic/11085-enableing-and-disableing-of-the-fly/ Share on other sites More sharing options...
kenrbnsn Posted June 3, 2006 Share Posted June 3, 2006 You would use Javascript for that, not PHP.Ken Quote Link to comment https://forums.phpfreaks.com/topic/11085-enableing-and-disableing-of-the-fly/#findComment-41449 Share on other sites More sharing options...
wildteen88 Posted June 3, 2006 Share Posted June 3, 2006 You'll want to look into Ajax for that sort of thing. You can code the backend in PHP then you use AJAX that then sends a call to your php script which then populates the secound drop down menu. With AJAX it will be done in the background and doesn't require for the user to be redirected or the page to be refreshed. Quote Link to comment https://forums.phpfreaks.com/topic/11085-enableing-and-disableing-of-the-fly/#findComment-41467 Share on other sites More sharing options...
Liquid-Fire Posted June 3, 2006 Author Share Posted June 3, 2006 Ok, it looks like Ajax mighjt be useful for more than that so i will take a look into that technology. Quote Link to comment https://forums.phpfreaks.com/topic/11085-enableing-and-disableing-of-the-fly/#findComment-41500 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.