Re: WML Headers
| From: | Peter | Date: | Mon, 17 Jun 2002 07:47:33 +0000 |
| Subject: | Re: WML Headers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102478@lists.php.net to get a copy of this message | ||
If you put a header(Location: gohere) at the top of the page, shouldn't the
server redirect you to the new page automatically rather than the browser?
If the browser is doing the redirecting, then it's going to slow down a WAP
handset because it would need to connect and load one page, then reconnect
and load the page it was rediredted to.
"Al Baker" <ajb732@comcast.net> wrote in message
news:1024257905.15080.893.camel@workstation...
> Hi,
>
> I'm working at adding a WML interface to my current HTML based web
> interface.
>
> A little background, when I want to redirect a page, such as when there
> is bad user input and such, I have a function:
> function redirect($to)
> {
> header("Location: $to");
> }
>
> It works well, the page is redirect there. Looking over some online
> sites and WAP phone simulators it appears that the WML header is
> Content-location: $to.
>
> However, on some browsers such as WinWap3.1 Pro, it won't redirect to
> the supplied header, but rather just continue with that current file.
> Also using OpenWave's SDK it will redirect in the simulator but it will
> still read the rest of the file.
>
> Am I going about this whole redirect thing wrong, and/or does anyone
> have some good tips on WML redirections?
>
> Thanks,
> Al Baker
>
>