Jump to content

Login problem


harsh9892991141

Recommended Posts

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_color 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..

/*this is my code for the index page*/

<?

include ("include_config.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.inc"); ?>

<script src="main.js" type="text/javascript"></script>

<script src="tasks.js" type="text/javascript"></script>

 

</head>

<body>

 

<?

include ("include_config.inc");

include ("include_profile_name.inc");

include ("include_project_name.inc");

include ("include_log_file.inc");

include ("include_delete_task.inc");

include ("include_state_name.inc");

include ("include_user_name.inc");

include ("include_display_comment.inc");

include ("include_button.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_name);

 

?>

 

 

<?php # Login Form BEGIN ?>

<p>

<br>

<br>

<div align="center">

<form method="post" action="<? echo $g_path."C:/xampp/workproject/login_control.php"; ?>">

 

<table>

<tr>

<?

$view_gif = $g_icon_path."logo.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">   <br>   </td>

</tr>

<tr>

<td class="input">   <?php echo USERNAME ?>: </td>

<td><input type="text" name="f_username" size="32" maxlength="32"></td>

</tr>

<tr>

<td class="input">   <?php echo PASSWORD ?>:</td>

<td><input type="password" name="f_password" size="16" maxlength="32"></td>

</tr>

<tr>

<td colspan="2" align="center">

<? button("Login","Login to the application","submit();"); ?>

<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_bottom.inc");

?>

 

</body>

</html>

Link to comment
https://forums.phpfreaks.com/topic/98110-login-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.