WML Program to Display Input-Output
Code:
/*WML Program to Display Input-Output*/
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORAM//DTD WML 1.2//EN"
"http:??www.wapforum.org/DTD/wml12.dtd">
<wml>
<card id="Login" title="Login">
<do type="accept" label="Results">
<go href="#Results"/>
</do>
<p>
UserName:
<select name="name" title="Name:">
<option value="madhavi">madhavi</option>
<option value="shweta">shweta</option>
</select>
Password:
<select name="pass" title="Password:">
<option value="password1">password1</option>
<option value="password2">password2</option>
</select>
</p>
</card>
<card id="Results" title="Results:">
<p>
You Entered:<br />
Name:$(name)<br />
password:$(pass)<br />
</p>
</card>
</wml>
Sample Output:<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORAM//DTD WML 1.2//EN"
"http:??www.wapforum.org/DTD/wml12.dtd">
<wml>
<card id="Login" title="Login">
<do type="accept" label="Results">
<go href="#Results"/>
</do>
<p>
UserName:
<select name="name" title="Name:">
<option value="madhavi">madhavi</option>
<option value="shweta">shweta</option>
</select>
Password:
<select name="pass" title="Password:">
<option value="password1">password1</option>
<option value="password2">password2</option>
</select>
</p>
</card>
<card id="Results" title="Results:">
<p>
You Entered:<br />
Name:$(name)<br />
password:$(pass)<br />
</p>
</card>
</wml>
Comment bellow for Query and Feedback :)
0 comments:
Confused? Feel free to ask
Post a Comment