IE problems with running script!
Posted: Mon Jun 01, 2009 3:54 pm
Hi, please check this in Firefox and type in twenty daily quests and you should get the image and test it in Internet Explorer and type the same. Why you don't get any result? I don't understand it why it works in Firefox perfectly but isn't working at all in Internet Explorer.
Code: Select all
<?PHP
include("connect.php");
include("vars.php");
if(isset($_POST['search'])) {
if (!$_POST['name']) {
echo $topregister;
echo "<table width='330' class='toutborder' cellspacing='2' cellpadding='2'><tr><td class='tinborder' align='center'>If you are searching you have to type what are you searching for. <a href='javascript:self.history.back();'>Return</a>.</td></tr></table>";
echo $bottom;
exit();
}
$name = mysql_escape_string($_POST['name']);
$result = mysql_query("
SELECT *
FROM achievements
WHERE name='$name'
",$connect);
while($myrow = mysql_fetch_assoc($result)) {
echo $topadd_ach;
echo "<table width='330' class='toutborder' cellspacing='2' cellpadding='2'><tr><td class='tinborder' align='center'>Good that you checked because there is an achievement with that name.</td></tr></table>";
echo "<table width='330' class='toutborder' cellspacing='2' cellpadding='2'><tr width='100%'>";
echo "<td class='tinborder' align='center' width='30%'>Image:</td>";
echo "<td class='tinborder' align='center' width='30%'>Name:</td>";
echo "<td class='tinborder' align='center' width='40%'>Description:</td>";
echo "</tr></table>";
echo "<table width='330' class='toutborder' cellspacing='2' cellpadding='2'><tr width='100%'>";
echo "<td width='30%' class='trstyle' align='center'><table border='0' cellspacing='1' cellpadding='1'><tr><td style='background: url(http://i.meteorgames.com/ic/bg/000000_both_b48.png) no-repeat;'><table border='0' cellspacing='0' cellpadding='0'><tr><td style='background: url(";
echo $myrow['image'];
echo ") no-repeat;'><table border='0' cellspacing='0' cellpadding='0'><tr><td><img src='http://i.meteorgames.com/ic/b/e5e5e5_b48.png'></td></tr></table></td></tr></table></td></tr></table></td>";
echo "<td width='30%' class='trstyle' align='center'>";
echo $myrow['name'];
echo "</td>";
echo "<td width='40%' class='trstyle' align='center'>";
echo $myrow['description'];
echo "</td>";
echo "</tr></table>";
echo "<form method='post' action='" . $_POST['$PHP_SELF'] . "' >
<table width='330' border='0' cellspacing='2' cellpadding='2' class='toutborder'>
<tr>
<td width='20%' class='tinborder'>Name: </td>
<td width='80%' class='trstyle'><input type='text' name='name' /> <input type='submit' name='search' value='Search!' /></td>
</tr>
</table>
</form>";
echo $bottom;
exit();
if($name!='$result') {
echo $topadd_ach;
echo "<table width='330' class='toutborder' cellspacing='2' cellpadding='2'><tr><td class='tinborder' align='center' >Achievement with name " . $_POST['name'] . " is not listed in our database records. You may add it. Of course if it is achievement.</td></tr></table>";
echo "<form method='post' action='" . $_POST['$PHP_SELF'] . "' >
<table width='330' border='0' cellspacing='2' cellpadding='2' class='toutborder'>
<tr>
<td width='20%' class='tinborder'>Name: </td>
<td width='80%' class='trstyle'><input type='text' name='name' /><input type='submit' name='search' value='Search!' /></td>
</tr>
</table>
</form>";
echo $bottom;
}
}
}//close of if elseif(isset($_POST['search']))
else
{
echo $topadd_ach;
echo "<table width='330' class='toutborder' cellspacing='2' cellpadding='2'><tr><td class='tinborder' align='center'>Hello, want to add achievement? First you should check if it is not already there. If it is not, be sure to add it.</td></tr></table>";
echo "<form method='post' action='" . $_POST['$PHP_SELF'] . "' >
<table width='330' border='0' cellspacing='2' cellpadding='2' class='toutborder'>
<tr>
<td width='20%' class='tinborder'>Name: </td>
<td width='80%' class='trstyle'><input type='text' name='name' /><input type='submit' name='search' value='Search!' /></td>
</tr>
</table>
</form>";
echo $bottom;
}
?>