By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 2,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

Login problem

P: 2
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..

<?
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"> &nbsp; <br> &nbsp; </td>
</tr>
<tr>
<td class="input"> &nbsp;&nbsp;<?php echo USERNAME ?>: </td>
<td><input type="text" name="f_username" size="32" maxlength="32"></td>
</tr>
<tr>
<td class="input"> &nbsp;&nbsp;<?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>
Mar 26 '08 #1
Share this Question
Share on Google+
3 Replies


Markus
Expert 5K+
P: 6,050

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

Regards.

hey i readthe guidelines....sry if i've not followed them... but can get a solution to my problem its rly urgent..
Mar 27 '08 #3

Markus
Expert 5K+
P: 6,050
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.
Mar 27 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.