Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<select class="form-control" required id="ploc" name="ploc">
<optgroup id="pairport" label="Airports">
<option value="airport-YES-YES">International Airport</option>
<optgroup id="photel" label="Hotels">
foreach ($hotels as $hotel) { ?>
<option value="HOT<?php echo $hotel['id']; ?>-<?php echo $hotel['eligible_shuttle']; ?>-<?php echo $hotel['d2d']; ?>"><?php echo $hotel["hotel_name"]; ?></option>
<?php } ?>
<optgroup id="psuburb" label="Suburbs">
foreach ($suburbs as $suburb) { ?>
<option value="SUB<?php echo $suburb['id']; ?>-<?php echo $suburb['eligible_shuttle']; ?>-<?php echo $suburb['d2d']; ?>"><?php echo $suburb["suburb_name"]; ?></option>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.