Jump to content

New search query in Flight Search Page


RichardRodgers

Recommended Posts

Hi guys,

I am looking to add a search drop down to the Find a flight serach page that will allow me to use the data in the NOTES box of a flight schedule.

The following code is for the search parameters that are concerned with searching by DEPARTURE AIRPORT

<div id="depapttab">

<p>Select your departure airport:</p>

<select id="depicao" name="depicao">

<option value="">Select All</option>

<?php

if(!$depairports) $depairports = array();

foreach($depairports as $airport)

{

echo '<option value="'.$airport->icao.'">'.$airport->icao

.' ('.$airport->name.')</option>';

}

?>

</select>

<input type="submit" name="submit" value="Find Flights" />

</div>

What would I need to change to get this to search by the NOTES instead.

The reason I ask is that we use the NOTES box to contain a pilots name, and so wish to be able to search for all flights relating to a particular pilot.

As always, any help gratefully received.

Richard

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