Niixie Posted December 31, 2010 Share Posted December 31, 2010 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 More sharing options...
mmarif4u Posted December 31, 2010 Share Posted December 31, 2010 You need to work out your paths in the scripts. Link to comment https://forums.phpfreaks.com/topic/223070-redirecting-bug-when-used-java/#findComment-1153305 Share on other sites More sharing options...
Niixie Posted December 31, 2010 Author Share Posted December 31, 2010 Like? Link to comment https://forums.phpfreaks.com/topic/223070-redirecting-bug-when-used-java/#findComment-1153324 Share on other sites More sharing options...
BlueSkyIS Posted December 31, 2010 Share Posted December 31, 2010 can't tell without seeing the code. Link to comment https://forums.phpfreaks.com/topic/223070-redirecting-bug-when-used-java/#findComment-1153332 Share on other sites More sharing options...
Niixie Posted December 31, 2010 Author Share Posted December 31, 2010 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 https://forums.phpfreaks.com/topic/223070-redirecting-bug-when-used-java/#findComment-1153333 Share on other sites More sharing options...
BlueSkyIS Posted December 31, 2010 Share Posted December 31, 2010 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 https://forums.phpfreaks.com/topic/223070-redirecting-bug-when-used-java/#findComment-1153334 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.