"Object not found!" error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webgenius
    New Member
    • Apr 2007
    • 15

    #1

    "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_h eader">
    <h2><span>Use r Login</span></h2>
    </div>

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

    <div id="field_usern ame">
    <strong><span>L og in:</span></strong>
    <input name="Username" type="text" id="Username"/>
    </div>

    <div id="field_passw ord">
    <strong><span>P assword:</span></strong>
    <input name="Password" type="text" id="Password"/>
    </div>

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

    </form>

    <div id="userlogin_l inks">
    <a href="yet to decide" id="register">< strong><span>Re gister >>></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_c olor PHP/5.2.5
    Plase help me on this.

    Thanks.
  • satas
    New Member
    • Nov 2007
    • 82

    #2
    Make sure that CheckLogin.php is in the same directory as html page with the form.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by webgenius
      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?

      Comment

      • webgenius
        New Member
        • Apr 2007
        • 15

        #4
        Found out the error. I was using header("locatio n:index.html"); instead of header("locatio n:index.htm");
        The problem got solved once I made this change.

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Originally posted by webgenius
          Found out the error. I was using header("locatio n:index.html"); instead of header("locatio n:index.htm");
          The problem got solved once I made this change.
          Glad you got it fixed.

          Regards.

          Comment

          • satas
            New Member
            • Nov 2007
            • 82

            #6
            Originally posted by webgenius
            Found out the error. I was using header("locatio n:index.html"); instead of header("locatio n: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

            Comment

            • webgenius
              New Member
              • Apr 2007
              • 15

              #7
              Originally posted by satas
              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.

              Comment

              • Markus
                Recognized Expert Expert
                • Jun 2007
                • 6092

                #8
                Originally posted by satas
                It is recommended to use absolute URI in this header:
                http://www.faqs.org/rfcs/rfc2616
                Relative urls dont hurt anyone.

                Comment

                • satas
                  New Member
                  • Nov 2007
                  • 82

                  #9
                  Originally posted by markusn00b
                  Relative urls dont hurt anyone.
                  Keeping in mind standards too.

                  Comment

                  Working...