Jump to content

Maksim

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Maksim

  1.  

    Hello, I want to show the current location of the pilot on the schedule page (/index.php/schedules). As I know, I use the correct code, but on the Schedules page it does not show anything except the words "This pilot's last location is". But on other pages (Pilot Center, profile) with this code everything works fine.

    <?php
         $last_location = PIREPData::getLastReports($userinfo->pilotid, 1, PIREP_ACCEPTED);
         echo "This pilot's last location is: {$last_location->arricao}";
    ?>

     

  2. Solved by adding 

    <?php
    echo file_get_contents('php://input');
    ?>
    <form action="#" method="post">
      <input type="text" name="textOne" value="Foo"/>
      <input type="text" name="textTwo" value="Bar"/>
      <input type="submit" value="Submit"/>
    </form>

    at the top of the php.ini

×
×
  • Create New...