-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Gabe,

On Friday 16 Apr 2004 19:48, Gabe wrote:
> Is the following code the best way to redirect someone to a different
> page using PHP?
>
> <?php
> header("Location: http://www.yahoo.com";);
> ?>

That's also known as "breaking the back button", but is the only way to do it 
in PHP.  A better way to redirect someone (and keep the back busson working) 
is to use the meta html tag.

> I looked for a "redirect" function of some kind and didn't come up with
> anything.  Just curious what the consensus is...
>
> Thanks

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee

>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgEdkaIgMKkVlSLQRAnFsAKCQVkF5SUthf+f7hH0xSwaafvW4/wCeKlK0
oQkwLFAPpT8jjkd3LD9dhvs=
=p4e2
-----END PGP SIGNATURE-----

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to