Jump to content

Archived

This topic is now archived and is closed to further replies.

Liquid-Fire

Enableing and Disableing of the fly

Recommended Posts

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 You
Ryan Zec

Share this post


Link to post
Share on other sites
You would use Javascript for that, not PHP.

Ken

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.