/    Sign up×
Community /Pin to ProfileBookmark

Meta tag issue in PHP

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

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@benifactorApr 04.2007 — try using this function...

[code=php]
<?
//redirect function

function redirect ($sec, $url) {

?>

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

<?php


}
?>
[/code]



and to call it...

[code=php]
<?
redirect(10, 'index.php');
?>
[/code]


replacing 10 and 'index.php' with your values...
Copy linkTweet thisAlerts:
@stephan_gerlachApr 04.2007 — and if that doesnt work use this

[code=php]

header('location: '.$url);

[/code]



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

Success!

Help @vssp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...