Login problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harsh9892991141
    New Member
    • Mar 2008
    • 2

    #1

    Login problem

    every time enter my login id and password in my index page it shows me the error 404

    Object not found!

    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

    If you think this is a server error, please contact the webmaster.

    Error 404
    127.0.0.1
    03/26/08 10:51:31
    Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_c olor PHP/5.2.5

    it works on windows vista but not on xp...i've checked the path its correct but still its not working...

    followed is the code of the index page..

    <?
    include ("include_confi g.inc");
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Your tasks - List user</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <? include ("include_css.i nc"); ?>
    <script src="main.js" type="text/javascript"></script>
    <script src="tasks.js" type="text/javascript"></script>

    </head>
    <body>

    <?
    include ("include_confi g.inc");
    include ("include_profi le_name.inc");
    include ("include_proje ct_name.inc");
    include ("include_log_f ile.inc");
    include ("include_delet e_task.inc");
    include ("include_state _name.inc");
    include ("include_user_ name.inc");
    include ("include_displ ay_comment.inc" );
    include ("include_butto n.inc");
    ?>

    <?
    write_log_user ($filename_log, "Beginning of login.");

    /* database connection */
    $link= mysql_connect($ g_hostname, $g_db_username, $g_db_password) or die("could not connect");
    $result = mysql_select_db ($g_database_na me);

    ?>


    <?php # Login Form BEGIN ?>
    <p>
    <br>
    <br>
    <div align="center">
    <form method="post" action="<? echo $g_path."C:/xampp/workproject/login_control.p hp"; ?>">

    <table>
    <tr>
    <?
    $view_gif = $g_icon_path."l ogo.png";
    echo "<TD><img src='$view_gif' border='0'></TD> \n";
    ?>

    <td>
    <table cellspacing="1" >

    <tr><td class="title" colspan="2" align="center"> Management of :<br>Prospects , their related needed skills, documents and ressources <br>Projects, their related tasks and assigned users</td>
    </tr>
    <tr><td align="center"> &nbsp; <br> &nbsp; </td>
    </tr>
    <tr>
    <td class="input"> &nbsp;&nbsp;<?p hp echo USERNAME ?>: </td>
    <td><input type="text" name="f_usernam e" size="32" maxlength="32"> </td>
    </tr>
    <tr>
    <td class="input"> &nbsp;&nbsp;<?p hp echo PASSWORD ?>:</td>
    <td><input type="password" name="f_passwor d" size="16" maxlength="32"> </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <? button("Login", "Login to the application","s ubmit();"); ?>
    <input type="submit" value="Submit">
    </td>
    </tr>
    <tr>
    <!-- <td align='center'> login= 'admin_gene' password='admin '</td> -->
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </form>
    </div>
    <? if ( $login_result == "KO") { ?>
    <div align="center">
    <table><tr><td> Yours parameters are wrong.</td></tr></table>
    </div>
    <? } ?>


    <?
    include ("include_botto m.inc");
    ?>

    </body>
    </html>
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Please read the forum guidelines on how to post questions (code tags)

    Regards.

    Comment

    • harsh9892991141
      New Member
      • Mar 2008
      • 2

      #3
      Originally posted by markusn00b

      hey i readthe guidelines....s ry if i've not followed them... but can get a solution to my problem its rly urgent..

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        It's saying you've mistyped the URL
        Check the location of the file and make sure it fits.
        Also, make sure you are typing in the correct extention of the file.

        Regards.

        Comment

        Working...