Drop down menus, and page changes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zachary8
Forum Newbie
Posts: 3
Joined: Wed Apr 23, 2008 7:33 am

Drop down menus, and page changes

Post by zachary8 »

This might be a noob question, so I'm sorry to ask it.

I wasn't sure what it is called, so I couldn't search for it, so I also apologize if its been asked before.

I've seen on on various web pages the action of selecting something from a drop down menu, and instantly, something on the site would change, like say you pick a category in a drop down menu, and isntantly another dropdown menu appears displaying sub categories.

Currently, I know how to get results on the same page, via a 'submit' button to post the current category and grab the data to display the sub category drop down menu on the next page.

My main goal is to get rid of the submit button so that the user can just keep rolling through the application without having to click submit everytime the enter in a piece of information.


Thanks for the help :)
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Drop down menus, and page changes

Post by aceconcepts »

In order to do this without using a submit button you'd have to use javascript or Ajax.
zachary8
Forum Newbie
Posts: 3
Joined: Wed Apr 23, 2008 7:33 am

Re: Drop down menus, and page changes

Post by zachary8 »

could you tell me a technical name for it or what it would be known as, as to help me search under those?

TY by the way :)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Drop down menus, and page changes

Post by onion2k »

Selecting from one dropdown to update another one is called a "chained select".
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Drop down menus, and page changes

Post by aceconcepts »

I have seen an example of this at http://www.dynamicdrive.com
zachary8
Forum Newbie
Posts: 3
Joined: Wed Apr 23, 2008 7:33 am

Re: Drop down menus, and page changes

Post by zachary8 »

ty guys. ur awesome.
Post Reply