Textarea in WML

Textarea in WML SearchSearch
Author Message
Enrique Samson Jr.
New member
Username: Nonoy

Post Number: 1
Registered: 08-2005
Posted on Wednesday, August 24, 2005 - 01:26 pm:   

I can't find a documentation on the textarea tag used in WML. But this script works:

<card id="wap_form" title="Send Message">
<p>
Number: <input name="sms_no" size="11" maxlength="11"/><br/>
Message: <textarea name="msg" cols="20" rows="6"></textarea>
<do type="text" label="Go">
<go method="get" href="#wap_2_db">
<?php
echo ("<postfield name=\"sms_no\" value=\"$(sms_no)\"/>");
echo ("<postfield name=\"msg\" value=\"$(msg)\"/>");
?>
</go>
</do>
</p>
</card>

The problem is $msg, the value of the textarea doesn't get posted. I hope somebody can help.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4831
Registered: 10-2002
Posted on Thursday, September 01, 2005 - 06:13 pm:   

Hi Enrique,

This is the support forum for the Now SMS/MMS Gateway product, so there is not much I can do to help you.

However, I can tell you that there is no "textarea" element in WML 1.x.

There is a "textarea" element defined in WML 2.0 ... but WML 2.0 support is "optional" for WAP 2.0 devices ... so while some WAP 2.0 devices might support WML 2.0, I would not expect all devices to support it. By contrast, all WAP 2.0 devices do have to support XHTML Basic, so if you wanted to limit yourself only to WAP 2.0 devices, you'd be better off using XHTML Basic instead.

I'd recommend you stick to WML 1.x, and use an "input" field instead, even though it doesn't allow you to specify multiple rows.

-bn