note 111957 modified in function.header by googleguy

From: Date: Wed, 17 Apr 2013 12:50:23 +0000
Subject: note 111957 modified in function.header by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194513@lists.php.net to get a copy of this message
I searched long and hard for this answer and finally found it on Wikipedia, so I'm posing it here to save someone else the trouble! It's obviously so simple to the 'old hands' that nobody mentions it. To use PHP to display another web page in your browser, i.e. open or show a webpage that isn't the one containing the PHP code: header( 'Refresh: 0; url=thankyou.php' ); --was-- I searched long and hard for this answer and finally found it on Wikipedia, so I'm posing it here to save someone else the trouble! It's obviously so simple to the 'old hands' that nobody mentions it. To use PHP to display another web page in your browser, i.e. open or show a webpage that isn't the one containing the PHP code: header( 'Refresh: 0; url=thankyou.php' ); # or, passing parameters for $_GET['name'] etc.: header( 'Refresh: 0; url=thankyou.php?name='.$FTGfirst_name.'&email='.$FTGemail ); http://php.net/manual/en/function.header.php

« previous php.notes (#194513) next »