Jump to content

File a PIREP error


Toyuko

Recommended Posts

So

I have a little problem on my site. In the file a pirep page whenever a user selects another airline, the departure airport field disappears, only until the page gets refreshed that the user can file the PIREP. (Yes i know the bg white is not fully down the page, that was a easy fix)

Thanks

j0tji.png

Link to comment
Share on other sites

  • Moderators

Remove the <div id="depairport">. It usally comes an issue when I skin for a few VA's.... this code should work, as well, you should change the arrival airport since it does the same.

<select id="depicao" name="depicao">
<option value="">Select a departure airport</option>
<?php
foreach($allairports as $airport)
{
$sel = ($_POST['depicao'] == $airport->icao || $bid->depicao == $airport->icao)?'selected':'';

echo '<option value="'.$airport->icao.'" '.$sel.'>'.$airport->icao . ' - '.$airport->name .'</option>';
}
?>
</select>

<select id="arricao" name="arricao">
<option value="">Select an arrival airport</option>
<?php
foreach($allairports as $airport)
{
$sel = ($_POST['arricao'] == $airport->icao || $bid->arricao == $airport->icao)?'selected':'';

echo '<option value="'.$airport->icao.'" '.$sel.'>'.$airport->icao . ' - '.$airport->name .'</option>';
}
?>
</select>

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...