Perad Posted December 31, 2006 Share Posted December 31, 2006 I have seen it done with headers but this is needed half way down my script and it keeps saying "headers have already been sent."Currently i have this code. My client though doesn't want to have verification, instead he just wants the page to redirect itself when the comment has been posted.echo "<div class=\"confirmation\">Comment entered. Thanks!\n";echo "<a href=\"{$_SERVER['PHP_SELF']}" . "?action=show&id=$id\">Back</a></div>\n";How can i edit this to make it go directly to the link? Link to comment https://forums.phpfreaks.com/topic/32391-how-do-i-redirect-a-page/ Share on other sites More sharing options...
dbo Posted December 31, 2006 Share Posted December 31, 2006 Don't think it can be done with PHP, you'll have to rely on clientside scripting like javascript. Link to comment https://forums.phpfreaks.com/topic/32391-how-do-i-redirect-a-page/#findComment-150421 Share on other sites More sharing options...
fert Posted December 31, 2006 Share Posted December 31, 2006 http://www.phpfreaks.com/quickcode/Redirect/532.php Link to comment https://forums.phpfreaks.com/topic/32391-how-do-i-redirect-a-page/#findComment-150449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.