I want to redirect the user to one URL when selecting “9th Grade”, and redirect the user to another URL when selecting any of the other grades upon submitting the form. The HTML code below is found on a form within an HTML file. What should the PHP ‘if/else’ statement be in the configuration form handler, (the PHP form handler document)?
<!--this code is in the form within my HTML file-->
<select name="Grade" id="Grade">
<option> 6th Grade </option>
<option> 7th Grade </option>
<option> 8th Grade </option>
<option> 9th Grade </option>
<option selected="selected"> </option>
</select>
[php]
//not sure what should be placed in the PHP form handler document. It’s not in the same folder as the HTML file
if (){
$redirect_url=“my url 1”;}
else (){
$redirect_url=“my url 2”;}
//not sure what else I am missing
[/php]