Jump to content

choose an aircraft in the schedule briefing


thomas2360

Recommended Posts

Hello everyone!

I'd like to know what code I need to let my pilots choose their aircraft in the schedule briefing because the calculation of fuel depends on the aircraft. I've tried that but it's not good!

<dd>

<select name="aircraft" id="aircraft">

<option value="">Si l'appareil avec lequel vous avez volé n'est pas dans la liste cliquez sur AUTRE.</option>

<?php

foreach($allaircraft as $aircraft)

{

$sel = ($_POST['aircraft'] == $aircraft->name || $bid->registration == $aircraft->registration)?'selected':'';

echo '<option value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->name.' - '.$aircraft->registration.'</option>';

}

?>

</select>

</dd>

Thank you for your help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...