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>
On 27/6/2017 at 4:49 PM, gman1235435 said:
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>
Parkho has a module for that:
https://github.com/parkho/Aviation-Weather-V1.0