Toyuko Posted January 3, 2013 Report Share Posted January 3, 2013 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 Quote Link to comment Share on other sites More sharing options...
Toyuko Posted January 4, 2013 Author Report Share Posted January 4, 2013 There has to be a solution to this. :/ Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted January 4, 2013 Moderators Report Share Posted January 4, 2013 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.