La Comunidad de Desarrolladores WAP
@ Contacta con nosotros
  .WMLClub


APRENDIZAJE
- Tutoriales
- Código fuente / Demos
- FAQS
- Configuración móviles
- Demos en WAP

HERRAMIENTAS
- Programas / Download
- Creación de contenidos

ARCHIVO
- FAQS
- Terminales WAP
- Documentos
- Artículos
- Noticias
- Links
- Libros
- Índice WAP

    CÓDIGO FUENTE/DEMOS

    FECHA Y HORA: CODIGO en ASP/WML Y PHP/WML para INCLUIR LA FECHA Y LA HORA

    Enviado a la lista wmlprogramming@yahoogroups.com

    ASP

    <%Response.ContentType = "text/vnd.wap.wml"%>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
    <wml>
    <card id="servertime" title="Time and Date">
    <p>Date and time: <%=now()%></p>
    <p>Time: <%=time()%></p>
    <p>Date: <%=date()%></p>
    </card>
    </wml>

    PHP

    <?php
    header("Content-type: text/vnd.wap.wml");
    echo "";
    echo " . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    ?>
    <wml>
    <card id="card1" title="Time and Date">
    <p>Date :
    <?php
    $the_date = date("M d Y");
    print $the_date;
    ?>
    </p>
    <p>Time
    <?php
    $the_time = time();
    print $the_time;
    ?>
    </p>
    </card>
    </wml>