WML Headers
| From: | Al Baker | Date: | Sun, 16 Jun 2002 20:05:05 +0000 |
| Subject: | WML Headers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102419@lists.php.net to get a copy of this message | ||
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