On Mar 24, Tom Cooper sprach thusly:
> This is how I do what you're talking about and it really
> doesn't have anything to do with perl.
Nor does it have anything to do with LWP... ;-)
>
> [ wml removed ]
>
> 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
Here's a sample form from my wml addressbook (you can use
CGI->param($field) to get at the various fields):
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<meta http-equiv="Cache-Control" content="max-age=30"/>
</head>
<card id="index">
<p>
<select name="email">
<option value="[EMAIL PROTECTED]" onpick="#message">recipient</option>
<option value="[EMAIL PROTECTED]" onpick="#message">foobar</option>
</select>
</p>
</card>
<card id="message">
<do type="accept" label="Sendmail">
<go href="mail.cgi" method="post">
<postfield name="mailto" value="$(mailto)"/>
<postfield name="subject" value="$(subject)"/>
<postfield name="body" value="$(body)"/>
</go>
</do>
<p>
To:
<input name="mailto" value="$(email)"/>
Subject:
<input name="subject"/>
Body:
<input name="body"/>
</p>
</card>
</wml>
Hope that helps. I'd recommend the developer docs at phone.com --
the docs have errors, but if you have a basic understanding of
XML, you can "autocorrect" them (most of the errors are just
errors of malformed XML).
- Austin