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

"Object not found!" error

P: 15
Whenever I click the SUBMIT button in my HTML page, I get the "Object not found!" error. It was working fine yesterday. This error started to occur after I installed Codelobster and made some changes to the php file CheckLogin.php.

This is a small part of the HTML page with the button:

<div id="page_forms">

<!-- Start of User Login -->

<div id="userlogin">

<div id="userlogin_header">
<h2><span>User Login</span></h2>
</div>

<form name="LoginForm" method="post" action="CheckLogin.php">

<div id="field_username">
<strong><span>Log in:</span></strong>
<input name="Username" type="text" id="Username"/>
</div>

<div id="field_password">
<strong><span>Password:</span></strong>
<input name="Password" type="text" id="Password"/>
</div>

<div id="button_enter">
<input type="image" src="images/userlogin_enter.gif" alt="Enter" class="button" />
</div>

</form>

<div id="userlogin_links">
<a href="yet to decide" id="register"><strong><span>Register >>></span></strong></a>
<br />
<a href="yet to decide/" id="notregister"><strong><span>Not Registered Yet?</span></strong></a>
</div>

</div>
When I enter the username and password and click on the Submit button, I get the error:
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
localhost
03/15/08 16:21:33
Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5
Plase help me on this.

Thanks.
Mar 15 '08 #1
Share this Question
Share on Google+
8 Replies


P: 82
Make sure that CheckLogin.php is in the same directory as html page with the form.
Mar 15 '08 #2

Markus
Expert 5K+
P: 6,050
Whenever I click the SUBMIT button in my HTML page, I get the "Object not found!" error. It was working fine yesterday. This error started to occur after I installed Codelobster and made some changes to the php file CheckLogin.php.

This is a small part of the HTML page with the button:



When I enter the username and password and click on the Submit button, I get the error:


Plase help me on this.

Thanks.
Hmm, what code changes did you make to CheckLogin.php?
Mar 15 '08 #3

P: 15
Found out the error. I was using header("location:index.html"); instead of header("location:index.htm");
The problem got solved once I made this change.
Mar 15 '08 #4

Markus
Expert 5K+
P: 6,050
Found out the error. I was using header("location:index.html"); instead of header("location:index.htm");
The problem got solved once I made this change.
Glad you got it fixed.

Regards.
Mar 15 '08 #5

P: 82
Found out the error. I was using header("location:index.html"); instead of header("location:index.htm");
The problem got solved once I made this change.
It is recommended to use absolute URI in this header:
http://www.faqs.org/rfcs/rfc2616
Mar 15 '08 #6

P: 15
It is recommended to use absolute URI in this header:
http://www.faqs.org/rfcs/rfc2616
Thanks for the input satas. Since I'm developing the page for my practise, I've used relative URL.
Mar 15 '08 #7

Markus
Expert 5K+
P: 6,050
It is recommended to use absolute URI in this header:
http://www.faqs.org/rfcs/rfc2616
Relative urls dont hurt anyone.
Mar 15 '08 #8

P: 82
Relative urls dont hurt anyone.
Keeping in mind standards too.
Mar 15 '08 #9

Post your reply

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