how can i print message while redirection of header (page redirect) that your page has been redirect successfully or anything else such as one (blog name)has been update successfully?
If your doing a redirect by sending it in the headers then you can't show a message first because a redirect response can not have a body as well. What you may want to do is show a normal page and have a meta refresh on the page that will redirect after a number of seconds, so you can display a message to the user in that time.
On http://yoursite.com/page1 display a normal page with your message on saying that the user will be redirected in 2 seconds. Also include the following tag inbetween the <head> tags of your html. <meta http-equiv="refresh" content="2;url=http://yoursite.com/page2"> Code (markup):