Menu

Nothing happened

2004-12-03
2013-04-11
  • Nobody/Anonymous

    I entered the username test and password test and nothing happened. It did'nt give my any errors or anything. Thanks in advance.

     
    • Primate Applications

      Did this happen after you installed the program?  Could you post the results of this query?

      SELECT * from users;

      Thanks :)

      Ray

       
    • Nobody/Anonymous

      It gave me the username: test and the md5-converted "test" =098f6.............. type="Admin"

       
    • Nobody/Anonymous

      Yes its after the installation

       
      • Primate Applications

        Do you go right back to the login page, or is it a blank page?

         
    • Primate Applications

      Also, is this webpage public?  If so I can look at what's going on.

      Thanks,
      Ray

       
    • Nobody/Anonymous

      I go back right into the login page, sorry I'm running it locally on a linux box.

       
      • Primate Applications

        Can you get the source code of the page after you try to log in and post it here or email me.

        Thanks!

        Ray

         
    • Nobody/Anonymous

      <html>
      <head>
      <title>SchoolMate - Jefferson Middle School</title>
      <style type="text/css">

      /* BODY */
      body
      {
        background-color: #336699;
      }

      /* LINKS */
        A.footer
        {
          font-family: arial;
          font-size: 10pt;
          font-weight: normal;
          color: silver;
          text-decoration: underline;
        }

        A.footer:hover
        {
          font-family: arial;
          font-size: 10pt;
          font-weight: normal;
          color: black;
          text-decoration: underline;
        }

        A.menu
        {
          font-family: arial;
          font-size: 12pt;
          font-weight: bold;
          color: #e6ca3d;
          text-decoration: none;
        }

        A.menu:hover
        {
          font-family: arial;
          font-size: 12pt;
          font-wight: bold;
          color: #FFFFBB;
          text-decoration: none;
        }

        A.pagenum
        {
         font-family: arial;
         font-size: 10pt;
         font-weight: normal;
         color: #808080;
         text-decoration: none;
        }

        A.pagenum:hover
        {
         font-family: arial;
         font-size: 10pt;
         font-weight: normal;
         color: #ACACAC;
         text-decoration: none;
        }

        A.selectedpagenum
        {
         font-family: arial;
         font-size: 10pt;
         font-weight: normal;
         color: #000000;
         text-decoration: underline;
        }

        A.selectedpagenum:hover
        {
         font-family: arial;
         font-size: 10pt;
         font-weight: normal;
         color: #ACACAC;
         text-decoration: underline;
        }

        A.items
        {
         font-family: arial;
         font-size: 10pt;
         font-weight: normal;
         color: #000000;
         text-decoration: underline;
        }

        A.items:hover
        {
         font-family: arial;
         font-size: 10pt;
         font-weight: normal;
         color: #5F5F5F;
         text-decoration: underline;
        }

        /* TABLES */
        table
        {
          background-color: #FFFFFF;
        }

        table.y
        {
          background-color: #FFFFBB;
        }

        table.dynamiclist
        {
         border-color: #585858;
         border-width: .075EM;
         border-style: solid;
         padding-right: 1px;
         padding-bottom: 1px;
         padding-left: 0px;
         padding-top: 0px;
        }

        td.b
        {
         background-color: #336699;
        }

        td.bv
        {
         background-color: #336699;
         background-repeat: repeat-y;
        }

        td.w
        {
         background-color: #FFFFFF;
        }

        td.announcement
        {
         text-align: justify;
         padding-left: 20px;
         padding-right: 20px;
        }

        .odd
        {
         background-color: #ACACAC;
         text-align: center;
        }

        .even
        {
         background-color: #E0E0E0;
         text-align: center;
        }

        .header
        {
         background-color: #FFFFBB;
        }

      /* HEADERS */
        h1
        {
             font-family: times;
          font-size: 22pt;
          font-weight: bold;
          color: #000000;
          text-decoration: none;
          text-align: center;
        }

        h2.message
        {
          font-family: times;
          font-size: 16pt;
          font-weight: bold;
          text-decoration: none;
          text-align: center;
        }

      /* CUSTOM CLASSES */
        .messagebox
        {
          background-color: #FFFFBB;
          border-style: solid;
          border-width: .075EM;
          border-color: #e6ca3d;
          padding: 10px 10px 10px 10px;
          min-width: 150px;
          min-height: 150px;
          width: 300;
          height: 200;
          font-family: arial;
          font-size: 10pt;
          text-align: left;
          overflow: none;
        }

        .messageboxcenter
        {
          background-color: #FFFFBB;
          border-style: solid;
          border-width: .075EM;
          border-color: #e6ca3d;
          padding: 10px 10px 10px 10px;
          min-width: 150px;
          min-height: 50px;
          width: 300;
          height: 200;
          font-family: arial;
          text-align: center;
          vertical-align: middle;
          overflow: auto;
        }

        .footer
        {
          font-family: arial;
          font-size: 10pt;
          font-weight: normal;
          color: silver;
        }

        .yellowtext
        {
          font-family: times;
          font-size: 25pt;
          font-weight: normal;
          color: #e6ca3d;
          text-decoration: none;
        }

      </style>
      </head>

      <body onLoad='document.login.username.focus();'>
      <table cellpadding=0 cellspacing=0 border=0 width='100%' height='80'>
      <tr>
      <td class='b' width='300'>
        <img src='./images/title.gif' height='75' width='300' />
      </td>
      <td class='b'>
        <table cellpadding=0 cellspacing=0 border=0 width='80%'>
        <tr>
        <td class='b'>
         <div class='yellowtext' align='center'>Jefferson Middle School</div>
        </td>
        </tr>
        </table>
      </td>
      </tr>
      </table>

      <table width='100%' height='88%' border=0 cellspacing=0 cellpadding=0 align='center'>
      <tr>
        <td class='b' width='130' height=10><empty></td>
        <td class='b' width=10 background='./images/topleft.gif'><empty></td>
        <td class='b' height=10 background='./images/top.gif'><empty></td>
        <td class='b' width=10 background='./images/topright.gif'><empty></td>
      </tr>

        <tr>
        <td class='b' width=130 valign='top'>
         <br>
        </td>
        <td class='bv' width=10 background='./images/left.gif'>&nbsp;</td>
        <td class='w' valign='top'>
         <table border=0 cellspacing=0 cellpadding=25 width='100%' height='100%'>
          <tr>
           <td valign='top'>
            <br>
            <table width='150' border=0 align='center' cellspacing=0 cellpadding=5>
            <tr>

             <td width='50%' align='left' valign='top'>
              <div class='messagebox'>
               
              </div>
             </td>

           <td width='50%' align='right' valign='top'>
              <div class='messagebox'>
               <br>
               <form action='index.php' method='post' name='login'> <table width='100%' height='85%' border=0 cellspacing=0 cellpadding=0 align='center' class='y'>
                <tr>
                 <td align='right' height=50 valign='middle'><b>Username:&nbsp;</b></td>
                 <td><input type=text name='username' maxlength=15 width=18></td>
                </tr>
                <tr>
                 <td align='right' height=45 valign='middle'><b>Password:&nbsp;</b></td>
                 <td><input type=password name='password' maxlength=15 width=18></td>
                </tr>
                <tr>
                 <td>&nbsp;</td>
                 <td align='center' height=45><input type=submit value='Login' onClick='document.login.value=1;'></td>

                </tr>
               </table>
             <input type='hidden' name='page' value='0'>
             <input type='hidden' name='login'>
            </form>
           </div>
          </td>

         </tr>
         <tr>

         <td width='50%' align='right' valign='top'>
          <div class='messageboxcenter'>
           <table border=0 cellpadding=0 cellspacing=0 class='y'>
           <tr>
            <td align='center' valign='middle'>
              <br>
              <img src='./images/school.jpg' style='padding-left: 30px; padding-top: 20px;' width='233' height='111' align='center' valign='middle' />
            </td>
           </tr>
           </table>
          </div>
         </td>

          <td width='50%' align='left' valign='top'>
           <div class='messageboxcenter'>
            <h2 class='message'>Today's Message</h2> <br>
             This is the Message of the day:-

      We think our fathers fools, so wise do we grow,
      no doubt our wisest sons would think us
      so.
           </div>
          </td>

         </tr>
        </table>
      </td>

        </tr>
      </table>
      </td>
         <td class='bv' width=10 background='./images/right.gif'>&nbsp;&nbsp;</font></td>
      </tr>
      <tr>
        <td class='b' width=130 height='10'><empty></td>
        <td class='b' width=10  height='10' background='./images/bottomleft.gif'><empty></td>
        <td class='b' height='10' background='./images/bottom.gif'><empty></td>
        <td class='b' width=10  height='10' background='./images/bottomright.gif'><empty></td>
      </tr>
      <tr>
        <td colspan=4 bgColor='#336699' height='20'>
         <center>
          <span class='footer'>Powered By - </span><a target='_BLANK' href='http://www.primateapplications.com' class='footer'>SchoolMate</a>
         <center>
        </td>
      </tr>
      </table>
      </body>
      </html>

       
    • Nobody/Anonymous

      I can tell it connects to my database succesfully because it can retrieve the name of the school that I put in in the schoolinfo table.
      Thank you.

       
    • Primate Applications

      Well, that all looks fine.  When you click the "login" button, does the page actually reload, or does it just sit there?  Unfortunately I don't know what's going on just yet.  We can try this though.

      Just above the line:

      // Validate and log the user into the system //

      in index.php

      put this line:

      print($_POST["login"]);

      Then try to log in again.  If it works, there should be a "1" in the top left corner of the page.  If not it will either be blank or something other than "1".

       
    • Nobody/Anonymous

      It tries to reload the page but it just goes back to the login page. I added that line in index.php and it was blank.

       
    • Primate Applications

      You said this was on a linux box.  Just to make sure, are the permissions set correctly on the files?  Just to check, try chmoding them to 777.  Another thing to check would be your apache error logs.  Probably something like /var/log/apache/error_log.

       
    • Nobody/Anonymous

      Permissions were set correctly, and there was no error log.

       
    • Nobody/Anonymous

      If you try to access it in MS IE then it would be a temporary encoding error. Try View / Encondin / Auto Select or Western European (ISO) in MS IE.

       

Log in to post a comment.