The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> help html/php (absolute beginner)
nicotier
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 21 2017, 10:12 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,628
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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th March 2024 - 12:02 AM