Report Creating a Metar Search in Code Snippets Posted June 27, 2017 I am trying to make a way for pilots to search any meter they want. I have done this so far, and it doesn't work, can someone please help? <div> ICAO Code: <input type="text" name="icao"> <input type="submit"> <?php $metar = $_POST['metar']; $url = 'http://metar.vatsim.net/'.'icao'.''; $page = file_get_contents($url); echo $page; ?> </div>
Creating a Metar Search
in Code Snippets
Posted
I am trying to make a way for pilots to search any meter they want. I have done this so far, and it doesn't work, can someone please help?
<div>
ICAO Code: <input type="text" name="icao">
<input type="submit">
<?php
$metar = $_POST['metar'];
$url = 'http://metar.vatsim.net/'.'icao'.'';
$page = file_get_contents($url);
echo $page;
?>
</div>