I'm pretty new to PHP, but my experience in other languages (such as Java) is making it quite easy for me to learn. However, I'm having a problem with a form:
Is it possible to cause form components to appear or disappear depending on the user's selection from a drop-down list?
For example, if I want to add something to a database that can be in one of two categories, catA or catB, and a different form is needed for each category, can I create a different form for each and then use an if() block to choose which form is shown depending on which category is selected?
Or do I need JavaScript for this?
(I hope this all makes sense)