Help ! dropdown menu

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
dmakris
Forum Newbie
Posts: 11
Joined: Tue Jun 03, 2003 7:58 am
Location: Greece

Help ! dropdown menu

Post by dmakris »

Hello everybody, happy new year.

I would like to add a dropdown menu in my signup php page with 3 different options for the user. If the user selects the 1st option the script has to show 3 more "hidden" text fields in the same page. If the user selects the 2nd or 3rd option the page remains the same.

Thanks in advance for the help.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

u can do so using JavaScript, so there is no need of PHP in this matter. use style-sheets to hide the 3 hidden fields which u can afterwards show if user selects 1st option.
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

One method is explained more fully in this link:

http://www.htmldog.com/ptg/archives/000050.php

Regards
Post Reply