Page 1 of 1

quick Q - dynamic forms

Posted: Thu Aug 21, 2003 7:18 pm
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

Posted: Thu Aug 21, 2003 7:47 pm
by BDKR
This is a javascript thing. Check google for tips along these lines.

Cheers,
BDKR

Posted: Thu Aug 21, 2003 7:53 pm
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?

Posted: Thu Aug 21, 2003 10:25 pm
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