I am developing a html page in which the user submit a form which icludes a dropdown box to choose a value from. Once the user submit the form i want to submit the form and redirect users to different pages based on what they have chooses in the dropdown box.
HTML form code
<form action="#" method="post" class="form-group" id="dtls">
<label for="sp">Choose one:</label><select name="sp" id="sponsor" class="form-control">
<option value="mark" id="s1">Mark</option>
<option value="markus" id="s2">Markus</option>
</select>
<label for="mail">Your Email:</label><input type="email" name="mail" class="form-control" placeholder="Email Address...">
<input type="submit" name="sub" class="btn form-control btn-success" id="but">
</form>
Can anyone suggest me a good way to tackle this challenge? Thanks