User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 403,393 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,662 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 201 | Replies: 2
Reply
Join Date: Dec 2007
Posts: 9
Reputation: kusal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kusal kusal is offline Offline
Newbie Poster

Poulate a option field on change

  #1  
Mar 28th, 2008
Hello

I have a category select menu, what I want is to when user select a category I have to repopulate the sub category select menu with items

can I do this with out AJAX, it does not matter if there is a another request

can I use a onchange to call another php function?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 8
Solved Threads: 239
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Sensei

Re: Poulate a option field on change

  #2  
Mar 28th, 2008
Yes. You can do it without using ajax. This is how it is. You populate one select box from the table. Then have an onchange event, which submits the page when an option is selected. Then get the posted selectbox value and populate the 2nd selectbox.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Dec 2007
Posts: 9
Reputation: kusal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kusal kusal is offline Offline
Newbie Poster

Re: Poulate a option field on change

  #3  
Mar 28th, 2008
Thank you
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 9:35 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC