Page 204 - DCAP512_WAP_AND_WML
P. 204

WAP & WML




                    Notes              <card title=”Table”>
                                       <p>
                                       <table columns=”2">
                                       <tr>
                                       <td>Rollno:</td>
                                       <td>Name:</td>
                                       </tr>
                                       <tr>
                                       <td>001</td>
                                       <td>ABC</td>
                                       </tr>
                                       <tr>
                                       <td>002</td>
                                       <td>PQR</td>
                                       </tr>
                                       </table>
                                       </p>
                                       </card>
                                       </wml>

                                   16.  Example of Login Form In 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 id=”one” >
                                       <p>
                                       Username:<input type=”text” name=”use”/>
                                       Password:<input type=”password” name=”pwd”/>
                                       </p>
                                       <do type=”login”>
                                       <go href=”#two”/>
                                       </do>
                                       </card>
                                       <card id=”two” >
                                       <p>
                                       hello $(use)
                                       Your password is $(pwd)
                                       </p>
                                       <do type=”back”>
                                       <go href=”#one”/>
                                       </do>
                                       </card>
                                       </wml>



          198                               LOVELY PROFESSIONAL UNIVERSITY
   199   200   201   202   203   204   205