Page 126 - DCAP512_WAP_AND_WML
P. 126
WAP & WML
Notes The <input> element defines an entry field. Information entered here can be referenced within
our WML decks or can be passed to our application server.
The browser stores this in a named variable <input name=”variable”>.
<input> Example Code
<wml>
<card title=”Input”>
<p>
EmployeeName: <input name=”EmployeeName”
size=”25"/> <br/>
Age: <input age=”Age” size=”4" format=”*N”/><br/>
Gender: <input gender=”Gender” size=”10"/>
</p>
</card>
</wml>
Self Assessment
Fill in the blanks:
6. The <input> element defines an ………………….. field.
7. ………………….. indicates whether or not an empty string is valid, the default is “false” or
no.
9.3 Select and Option
A WML card, can be set up to display the select and option functions of WML:
<?xml version=”1.0"?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
“http://www.wapforum.org/DTD/wml_1.1.xml”>
<wml>
<card title=”Selectable List 1">
<p>
<select>
<option value=”htm”>HTML Tutorial</option>
<option value=”xml”>XML Tutorial</option>
<option value=”wap”>WAP Tutorial</option>
</select>
</p>
</card>
</wml>
120 LOVELY PROFESSIONAL UNIVERSITY