alyousufi Posted April 9, 2018 Report Posted April 9, 2018 Hi i am doing some thing for out virtual i am create a form to search a flight in frontpage but i need to know how can i show all dep or arr airport ? below is example code i create it in frontpage but nothing show , like airport to select <div class="field col"> <label>From </label> <div class="inputText"> <tr> <td> <select class="search" name="depicao"> <option value="">All Departure Airports</option> <option value="BIKF">BIKF - Keflavik International Airport</option> <option value="BLKF">BLKF - Keflavik International Airport</option> <option value="EDDF ">EDDF - Frankfurt Intl. Airport</option> <option value="EDDM">EDDM - Franz Josef Strauss International Airport</option> </select> </td> </tr> </div> </div> <!-- End of Field --> <!-- Start of Field --> <div class="field col"> <label>To </label> <div class="inputText"> <tr> <td> <select class="search" name="arricao"> <option value="">All Arrival Airports</option> <option value="BIKF">BIKF - Keflavik International Airport</option> <option value="BLKF">BLKF - Keflavik International Airport</option> <option value="EDDF ">EDDF - Frankfurt Intl. Airport</option> <option value="EDDM">EDDM - Franz Josef Strauss International Airport</option> </select> </td> </tr> </div> </div> <!-- End of Field --> </div> <input> <tr> <td colspan="2"> <center> <input type="hidden" name="action" value="findflight" /> <input type="submit" name="submit" class="btnblue" value="Search Flight" /></center> </td> </tr> </div> once i am click Search flight nothing is happen can anyone help me Quote
CarlosEduardo2409 Posted April 9, 2018 Report Posted April 9, 2018 Two questions: Are you using any module to book the flight? Ex: Fltbook. Or are you using phpVMS default? I see that in your code does not have the <form>, in your code have? Quote
alyousufi Posted April 10, 2018 Author Report Posted April 10, 2018 (edited) 9 hours ago, CarlosEduardo2409 said: Two questions: Are you using any module to book the flight? Ex: Fltbook. Or are you using phpVMS default? I see that in your code does not have the <form>, in your code have? Hi thank you for your responding actually i am using maybe the default module create by * @author Nabeel Shahzad and it has <form> tag do you have any idea that can help me in order make quick search for flight ? I have another page that already work for booking flight <tr> <td>Select Virtual Airline</td> <td><select class="search" name="airline"> <option value="">All Virtual Airline</option> <?php foreach ($airlines as $airline) {echo '<option value="'.$airline->code.'">'.$airline->name.'</option>';} ?> </select> </td> </tr> <tr> <td>Select Aircraft Type</td> <td> <select class="search" name="aircraft"> <option value="">All Aircraft Type</option> <?php foreach ($aircrafts as $aircraft) {echo '<option value="'.$aircraft->icao.'">'.$aircraft->icao.'</option>';} ?> </select> </td> </tr> <tr> <td>Select Departure Airport</td><td> <select class="search" name="depicao"> <option value="">All Departure Airports</option> <?php foreach ($airports as $airport) {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';} ?> </select> </td> </tr> <tr> <td>Select Arrival Airport</td><td> <select class="search" name="arricao"> <option value="">All Arrival Airports</option> <?php foreach ($airports as $airport) {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';} ?> </select> </td> </tr> <tr> <td colspan="2"> <center> <input type="hidden" name="action" value="findflight" /> <input type="submit" name="submit" class="btnblue" value="Search Flight" /></center> </td> </tr> </table> but if i copy dep code will not show the airport in frontage. Edited April 10, 2018 by alyousufi Quote
Moderators shakamonkey88 Posted April 10, 2018 Moderators Report Posted April 10, 2018 It's because you aren't calling anything from the database so your code above has no information to work/populate with. Quote
alyousufi Posted April 10, 2018 Author Report Posted April 10, 2018 6 hours ago, shakamonkey88 said: It's because you aren't calling anything from the database so your code above has no information to work/populate with. friend can we talk in PM or via Email or whatever you want i have finish something . now when i choose dep and arr airport and click button it will transfer me to FrontSchedules page but without showing any result like it need to repeat and will get the result but in different page Quote
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.