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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Niixie Posted December 31, 2010 Author Share Posted December 31, 2010 Like? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted December 31, 2010 Share Posted December 31, 2010 can't tell without seeing the code. Quote Link to comment 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> Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.