Lunar Posted June 7, 2011 Share Posted June 7, 2011 Hello, I've been through 20 or more posts and can't find what I want.. simple, I'm no expert. I have this piece of code that I don't even know where I got it or if one of my guys wrote it or what, but it's simple and it works. In know about meta 'refresh' and I've seen code that takes 10 lines setting timer etc, and I Don't want javascript.. Can a 'redirect' count "redirect=10" to this? <?php //Redirect browser header ("Location: http://landis.landisreed.com/study_in_form.php") ; ?> Please, simple.. Thank you in advance, Спасибо, Landis. Quote Link to comment https://forums.phpfreaks.com/topic/238733-php-head-redirect-works-great-want-to-add-delay/ Share on other sites More sharing options...
cssfreakie Posted June 7, 2011 Share Posted June 7, 2011 I don't know why you want to do that but this is a way to do it header("refresh: 10; url=http://google.com/"); Quote Link to comment https://forums.phpfreaks.com/topic/238733-php-head-redirect-works-great-want-to-add-delay/#findComment-1226753 Share on other sites More sharing options...
Lunar Posted June 8, 2011 Author Share Posted June 8, 2011 It's clean and simple.. Thank you Very Much. Спасибо, Landis Quote Link to comment https://forums.phpfreaks.com/topic/238733-php-head-redirect-works-great-want-to-add-delay/#findComment-1226771 Share on other sites More sharing options...
Lunar Posted June 8, 2011 Author Share Posted June 8, 2011 well this is what I have and no redirect, not even a mozilla warning. <?php header ("refresh: 10; url=http://google.com/"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> <title> one time it 'waited' with no page display and then 'tried' to go on to google. another time it loaded the page with the mozilla warning about a redirec and yet another with the warning it did go.. any ideas? thanks, Landis. fyi: landisreed.com> scottrade logo on right top... Quote Link to comment https://forums.phpfreaks.com/topic/238733-php-head-redirect-works-great-want-to-add-delay/#findComment-1226774 Share on other sites More sharing options...
Lunar Posted June 8, 2011 Author Share Posted June 8, 2011 ok, now i think i know why you thought it was a weired idea.. it waits Before it loads the first target page, not after loading like refresh, meta would.. hmmmm.. so i still need refresh to redirect After page load.. Thanks, Landis. Quote Link to comment https://forums.phpfreaks.com/topic/238733-php-head-redirect-works-great-want-to-add-delay/#findComment-1226777 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.