Re: Page load based on logic
| From: | Justin Patrin | Date: | Sat, 31 Jul 2004 19:21:01 +0000 |
| Subject: | Re: Page load based on logic | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192417@lists.php.net to get a copy of this message | ||
On Sat, 31 Jul 2004 01:58:48 -0400, Michael Harding
<mharding@genesisgroupusa.com> wrote:
> Thank you.
>
> You suggestion will work for some cases. However it doesn't actually load a
> different page. Sometime I will need to load a completely new URL instead
> of just a local PHP page...ie: www.somepage.com.
>
If you want the user to actually see a different URL, then you *must*
redirect them using a Location header or a meta refresh or javascript.
If all you want is to display the content from another page within
your script (but why you'd want to do this I don't know....all of its
internal links would probably be broken), you should be able to do:
readfile('http://example.com');
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--