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
https://forums.phpfreaks.com/topic/223070-redirecting-bug-when-used-java/
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>

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>

Archived

This topic is now archived and is closed to further replies.

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