Problem with Redirect (Show Blank page)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mapperkids
Forum Newbie
Posts: 15
Joined: Mon Feb 11, 2008 8:53 pm

Problem with Redirect (Show Blank page)

Post by mapperkids »

Hi,

I'm try to use statement below to redirect the other page, but all i get is refresh with a blank page,but I look at the URL on the browse of that blankpage, it show the URL correctly. Any idea

redirect("index.php?page=message");



Thanks a lot
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: Problem with Redirect (Show Blank page)

Post by ghurtado »

What happens if you just go to index.php?page=message directly?
mapperkids
Forum Newbie
Posts: 15
Joined: Mon Feb 11, 2008 8:53 pm

Re: Problem with Redirect (Show Blank page)

Post by mapperkids »

ghurtado wrote:What happens if you just go to index.php?page=message directly?
I tried that, same blank page and i even put some text at the beginning of that page, but still nothing come up.

Here are the code in the page "message"

====================================================
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td class="text"><span class="heading">Welcome to <?=getsettings(2,"",2);?>!</span><br>
<br><br><br>
<?=getsettings(8,"",2);?>
</td>
</tr>
<tr>
<td class="text"><span class="heading">

<?


if ($_SESSION["msg"]!='')
{
$temp=split("@",$_SESSION["msg"]);
for($i = 1; $i < count($temp); $i++){
echo "<img src='images/icons/help.gif'> &nbsp; ". $temp[$i] ."<br>";
}
}?>
</span><br>
<br>
</td>
</tr>




<tr>
<td colspan=2><img src="images/trans.gif" width="4" height="9"></td>
</tr>
</table>
<hr color="D6D6D6">


</table>


<?include("bottomad.html");?>
</td>

</tr>
</table></td>
</tr>
</table>
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: Problem with Redirect (Show Blank page)

Post by ghurtado »

You say thats the "message" page. Can you show us index.php?
Post Reply