Jump to content

Redirecting bug when used java


Niixie

Recommended Posts

Hello everyone, i have a "bug" i'd like you to see and help me solve if possible.

 

Let me tell you about when the redirection starts.

In my script, it checks if the two words you've entered in two boxes, if they match with the two words on the mysql database then send them to /php/userpanel.php

if they doesnt send them to /php/loginerror1.php

 

My problem is, that when you've been redirected to ex. /php/loginerror1.php

then when you click to a new page in the menu, it sends you to /php/loginerror1.php/index.php

 

/php/loginerror1.php also dont have any design, i think it doesnt load the .css properly.

 

Anyone had this, or anyone knows how to fix it?

 

Thanks Niixie

Link to comment
Share on other sites

this is the code for my menu

 

<div class="navbar">
          <ul>
                    <li><a href="index.php">Home</a></li>
                    <li><a href="index.php#">Forum</a></li>
                    <li><a href="loginpage.php">Login</a></li>
          </ul>
</div>

Link to comment
Share on other sites

you should use full paths in your navigation. /index.php means the home page index.php. if the link should go into the /php directory, add /php/ to the front of the url /php/index.php, etc. can't tell you much more without knowing your directory structure...

 

<div class="navbar">
          <ul>
                    <li><a href="/index.php">Home</a></li>
                    <li><a href="index.php#">Forum</a></li>
                    <li><a href="loginpage.php">Login</a></li>
          </ul>
</div>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.