Click to See Complete Forum and Search --> : Meta tag issue in PHP


vssp
04-04-2007, 02:05 AM
Hi friends
I am using mete tage to redirect the page in my php script.but the latest version firefox only not support the meta tag page redirect option -- unable pass the query string values. but older version its working correctly.

How can i fix the issue . Please advice

benifactor
04-04-2007, 07:22 AM
try using this function...


<?
//redirect function

function redirect ($sec, $url) {

?>

<meta http-equiv="refresh" content="<?=$sec;?>;URL=<?=$url;?>">

<?php


}
?>



and to call it...


<?
redirect(10, 'index.php');
?>


replacing 10 and 'index.php' with your values...

stephan.gerlach
04-04-2007, 07:30 AM
and if that doesnt work use this



header('location: '.$url);




but make sure you have ob_start(); at the top of the page on every page you want to use it.