|
This is how I do what you're talking about and it really
doesn't have anything to do with perl.
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.phone.com/dtd/wml11.dtd"> <wml> <head> <meta forua='true' http-equiv='cache-control' content='max-age=0'/> <meta forua='true' http-equiv='Cache-Control' content='must-revalidate'/> </head> <card> <p align="center"><img src="/m/image.cfm" alt=""/></p> <do type="accept"> <go href="page.pl?zipcode=$zipcode"/> </do> <p align="left">Zipcode: <input name="zipcode" type="text"format="NNNNN"/></p> </card> </wml> This method appends the variable that I want the script to
have access to on the query string and I can grab it using the standard CGI
module, or your get method that you described. This method works fine for
everything I plan to do on these devices, as I don't require massive amounts of
input. There may be a way to post data as well using WML, but I've not
figured it out yet. Remember that when you're doing more than one variable
on the querystring in WML you need to escape the "&" symbol, unlike
HTML. For instance "page.pl?lat=$lat&lon=$lon"
Hope this helps.
--Tom
|
- wap/wml and Perl dave fleet
- Re: wap/wml and Perl Tom Cooper
- Re: wap/wml and Perl Austin S. Lin
