How can i conditionally set PHP form action?. i have the following drop down option, when 2WD and 4WD selected i want to redirect or go to A.php otherwise the other one MFWD selected to open page B
 <form action="page.php">
    <select name="tractor">
      <option value="2wd">2WD</option>
      <option value="mfwd">MFWD</option>
      <option value="4wd">4WD</option>
    </select>
<input type="submit">
     here is the whole code
    <?php ob_start ?>
<!DOCTYPE html>
 <html>
  <body>
  <form method="post">
    <select name="tractor">
     <option value="2wd"><a href="iar7.php">2WD</a></option>
      <option value="mfwd">MFWD</option>
         <option value="4wd">4WD</option>
   </select>
   <br><br>
  <input type="submit" name="cmd_submit" />
 </form>
<?php
if(isset($_POST['cmd_submit'])){
    if($_POST['tractor'] == "2wd" || $_POST['tractor'] == "4wd"){
         //redirect here
         header('location:iar7.php');
    }else{
         header('location:iar-calculator.php');
     }
   }
  ?>
  </body>
  </html>
 
     
    