Jump to content

completelydeck

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Posts posted by completelydeck

  1. Nabeel,

    I'm sorry to be making so many threads here, but it seems that anyone who uses Internet Explorer on our site has the same bug that I can't figure out.  If a user submits a form (say an application) it redirects to the login page, without submitting anything.  For Firefox, it just reloads the same page, without submitting anything.  I think it's because of this:

    Header:

    <input type="submit" name="submit" value="Log In" />

    Registration page:

    <input type="submit" name="submit" value="Register!" />

    So, there are two forms with the same values, I think.  How would I fix this? 

    -Josh

  2. Nabeel,

    I've tried looking and tried figuring out the API, tried reading PHP tutorials, to no avail.  I don't have any idea how to simply pull a logged in user's data onto a webpage. A simple "hello world" would help me.  The only thing I've been able to do is recall the pilot's ID by putting:

    <?php
    $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
    ?>

    in and then:

    <li><b>Your Callsign</b>: <?php echo $pilotid ?></li>

    I'm probably going about it all wrong but that works at least.  I'm trying to find a way to pull up the total number of hours, latest flight they flew in a short format (such as "Your last flight: TXA1441 - KAUS - KDEN").

    Thanks for the help

  3. Nabeel, thanks in advance for the great script you have here. 

    I was wondering how I would go about showing a login form on the main page only when they aren't logged in.  If they are logged in, I would like to fill that space with a mini "control panel" type content (such as pilot name, pilot hours, hub, etc.).

    How would I go about this?

×
×
  • Create New...