Hello there everyone!
I am currently working an an online game called Knights and Wizards RPG.
I was trying to make it so that the admin pages I was testing would show up in the bottom left corner for admins only and i could click on the login buttons to go to the pages. HOWEVER, the browser doesn't go to the correct page.
Can someone please help me out?
This is the following information to login to the test admin account and try to help me out:
http://www.knightsandwizards.com
Character: devshedtest
password: 123
My problem is related to the 2 login buttons in the bottom left.
Wichever one I click, it still displays the text for the "Icewind" page! Let me show you the code that gets the page, or "step" from the database:
<?php
echo($_SESSION['character']);
echo($specialhiddenpassword);
if($status=="1")
{
$testingpagescounter = 1;
while($testingpagescounter<=5)
{
$testingpages = mysql_query("SELECT * FROM `gamepages` WHERE `test`='yes' && `id`='$testingpagescounter'");
$testingpagesarray=mysql_fetch_object($testingpages);
if($testingpagesarray->step !="")
{
echo("<form action=http://www.knightsandwizards.com/gametest/index.php method=post>");
echo("<input type=hidden name=character value=");
echo($_SESSION['character']);
echo( ">");
echo("<input type=hidden name=password value=");
echo($specialhiddenpassword);
echo(">");
echo("<input type=hidden name=step value=");
echo($testingpagesarray->step);
echo(">");
echo("<input type=image src=http://www.knightsandwizards.com/images/login.jpg>");
echo("</a>");
echo($testingpagesarray->step);
echo("<br>");
}
++$testingpagescounter;
}
}
?>
Please help me out!
I will be eternally greatful to whoever helps me fix this terrible problem!