I would like to make a form with two selects ($a and $b) and a submit button which takes them to a link 'http://www.mywebsite.com/$a$b' when they click submit
for exemple if they chose in first select 'grade' and second '10' and then clicked submit it will take them to 'http://www.mywebsite.com/grade10'
That's my index.php , i didn't do it yet because i don't know how :P
<?php
error_reporting(E_ERROR | E_PARSE);
$a = $_POST['a'];
$b= $_POST['b'];
echo $a, $b;
?>
<form action="index.php" method="post">
<select name="a" title="a" id="a" >
<option> </option>
<option>a</option>
</select>
<select name="b" title="b" id="b" >
<option> </option>
<option>b</option>
</select>
<input type="submit" value="submit" />
</form>
Thank you :)