Jump to content

Redirect


Doyley

Recommended Posts

I can't click anything... And I can't see it either because you haven't shown any code.

 

My bad, had my JavaScript disabled because I was testing my site without JavaScript. :P

 

Anyways... I'm guessing it's either something to do with your JavaScript or something to do with the page that you have it set going to. We need to see some code though.

Link to comment
https://forums.phpfreaks.com/topic/133051-redirect/#findComment-691957
Share on other sites

Righto... get ready to be spammed with code ;-)

 

Javascript bit...

 


<a href="/manager"><td onclick="document.location='/manager';" class="newleftbox" onmouseover="this.className='newleftboxon'" onmouseout="this.className='newleftbox'"> Managers Login</td></a>


 

The manager/index.php page...

 


<?php

include("../includes/header.php");

echo "<h1><center>Manager Login</center></h3>\n";

echo "<br /><br />\n";

echo "<form method=\"post\" action=\"login.php\">\n";
echo "<table border=\"0\" align=\"center\">\n";
echo "<tr>\n";
echo "<td><b>Username</b></td>\n";
echo "<td><input type=\"text\" name=\"uname\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td><b>Password</b></td>\n";
echo "<td><input type=\"password\" name=\"pass\" /></td>\n";
echo "</tr>\n";
echo "<tr><td> </td></tr>\n";
echo "<tr>\n";
echo "<td colspan=\"2\" align=\"center\">\n";
echo "<input type=\"submit\" value=\"Login\" />\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</form>\n";

echo "<br /><br />\n";

echo "<center>\n";
echo "<a href=\"register.php\"><b>Register</b></a>\n";
echo "<br /><br />\n";
echo "<a href=\"forgotpass.php\"><b>Forgot Password</b></a>\n";




include("../includes/footer.php");

?>

 

I'll post the header.php and footer.php file if requested but I don't think there is a problem with them because they are included on all pages.  The problem only occurs on the manager page.

 

I'm thinking it's some sort of apache configuration problem now because if you go directly to the manager/index.php page it works fine.

 

Cheers!

Link to comment
https://forums.phpfreaks.com/topic/133051-redirect/#findComment-691964
Share on other sites

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.