show text depending on drop down selection

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
sfraise77
Forum Newbie
Posts: 1
Joined: Tue Oct 05, 2010 11:59 pm

show text depending on drop down selection

Post by sfraise77 »

I'm building a form and would like to show a piece of text if a certain value is selected from a drop down in the form.
Example:
If USA is selected from the country drop down selector, {fld field} will be then print beneath the country drop down box.
Can I do some form of if else echo/print string for that?
Post Reply