How dim part of the form based on selection?

I have a php form that has a dropdown menu with two options: Standard or custom. If the visitor chooses Custom, I need the form remains to be "grey" on or off or something. I have no idea where to start. I did a quick search on the web and have not found much. I wonder if this may be something that handles JavaScript. Or perhaps an IF statement that causes the rest of the form to appear if custom is selected. (Please let me know if I am barking the wrong tree.)

I'll spend some time tomorrow night trying to find a solution, so I hope someone can point me in the right direction first.

Any advice would be welcome. If anyone knows a tutorial or explanation or a solution on the web, please send me a link.

Thanks to that!

John

PHP is a language server side, so the only way to do it with PHP would be to submit the form when this option is selected.

You must use JavaScript to disable form elements. The following script activates / deactivates on and outside form elements:


Put this in the head of your document and apply it on the menu drop down like a like this onchange event: