Hello,
I was hoping someone could help with changing this code so the pilots dont need to use the dropdown box just to select our Airline which is the only one listed there anyway..
I am looking at the PIREP.php and pirep_new.tpl files
pirep_new.tpl at line 11
<dt>Select Airline:</dt>
<dd>
<select name=“code” id=“code”>
<option value=“”>Select your airline</option>
<?php
foreach($allairlines as $airline)
{
$sel = ($_POST[‘code’] == $airline->code || $bid->code == $airline->code)?‘selected’:‘’;
echo ‘<option value="’.$airline->code.‘" ‘.$sel.’>’.$airline->code.’ - ‘.$airline->name.’</option>';
}
?>
</select>
Is there any way I can customise this code to give no option to select and have my Airline preselected instead ?
Any help would be mostly appreciated.
Regards
Adam