quick Q - dynamic forms

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
kintantee
Forum Newbie
Posts: 2
Joined: Thu Aug 21, 2003 7:18 pm

quick Q - dynamic forms

Post by kintantee »

I've seen code on websites (shopping, etc...) where you chose one option in a form, and that selection dictates what you do next...

for example, one drop-down box prompts you to choose windows or linux, and when you do, the next drop-down box on the page is then populated with 95,98,2000,XP,etc... (if you selected windows)

Is it possible to use php to do this without reloading the page? If not, what language must be used to do this without reloading the page?

I don't expect a long answer, I'm just curious how this is possible. Does anyone know of any tutorials that can teach me to do this? Oh, and is there a term used to describe this process?

Thanks... - Jesse
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

This is a javascript thing. Check google for tips along these lines.

Cheers,
BDKR
kintantee
Forum Newbie
Posts: 2
Joined: Thu Aug 21, 2003 7:18 pm

Post by kintantee »

I'm having trouble searching google for this, mainly because I don't know what its called! Can you direct me to somewhere specific?
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

You're in luck! I remembered the name of the function that a lot of people are using. I used it for some time as well.

Here is a link to it. It's called fillSelectFromArray()
http://gethelp.devx.com/techtips/js_pro ... in1298.asp

Cheers,
BDKR
Post Reply