help html/php (absolute beginner) |
help html/php (absolute beginner) |
nicotier |
Apr 21 2017, 07:37 AM
Post
#1
|
Group: Members Posts: 1 Joined: 21-April 17 Member No.: 26,378 |
hello, i need help for a website
how can i make appear another dropdown menu if i choose for example "master" in the first dropdown menu <form class="form-horizontal row-top-margin" action="training.php" method="post"> <fieldset> <div class="form-group"> <label for="degree" class="col-sm-2 control-label">Diplôme</label> <div class="col-sm-10"> <select class="form-control" name="degree"> <option value="none">Aucun</option> <option value="baccalaureate">Baccalauréat</option> <option value="bachelor">Bachelor</option> <option value="masters">Masters</option> <option value="phd">PhD</option> <option value="other">Autre</option> </select> </div> </div> This post has been edited by nicotier: Apr 21 2017, 07:43 AM |
Christian J |
Apr 21 2017, 10:12 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,630 Joined: 10-August 06 Member No.: 7 |
When the form is submitted, the PHP script in training.php could check if the "masters" value was submitted, and if so create a new HTML page with the other dropdown menu.
For the basics of PHP forms, see http://php.net/manual/en/tutorial.forms.php |
Lo-Fi Version | Time is now: 29th March 2024 - 06:26 AM |