468,306 Members | 1,232 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

"Object not found!" error

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
8 2892
satas
82
Make sure that CheckLogin.php is in the same directory as html page with the form.
Mar 15 '08 #2
Markus
6,050 Expert 4TB
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
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
6,050 Expert 4TB
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
satas
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
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
6,050 Expert 4TB
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
satas
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.

Similar topics

2 posts views Thread by Gregory | last post: by
7 posts views Thread by p | last post: by
3 posts views Thread by Manuel | last post: by
1 post views Thread by developer | last post: by
reply views Thread by mchuc7719 | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.