Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/09/2010, 08:20
MrDzioker
 
Fecha de Ingreso: septiembre-2010
Mensajes: 5
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: no muestra controles

Cita:
Iniciado por zeuzft Ver Mensaje
estoy intentando crear una wap pero el problema es que el emulador que utilizo me arroja errores y me indica que el tab wml; es incorrecto; no me muestra ni tabla ni cajas de texto alguien que me pueda indicar el porque?
Código PHP:
<?php
print'<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="formulario" title="BIENVENIDOS">
<p>'
;
echo 
"<form method='post' name='formulario' action='verificar.php'>";
print
'<table align="center" border="3">
                <tr>
                    <td colspan="2" align="center" >nn<img src="images/logo.wbmp" alt="logo"/></td>    
                </tr>
                <tr>
                    <td>N&ordm; Cuenta:</td>
                    <td><input type="text" name="usuario" maxlenght="16" onkeyup="var reg = /\D+/g; if(reg.test(this.value))this.value = this.value.replace(reg,"");"></td>
                </tr>
                <tr>
                    <td>Contraseña:</td>
                    <td><input type="password" name="clave"></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="Entrar" >
                        <input type="reset" value="Limpiar" >
                    </td>
                </tr>
</table>'
;
echo 
"</form>";
print 
'</p>
</card>
</wml>'
;
?>




In WML no esta <form> tag y tal vez <table>.

Yo uso:

Código PHP:
Ver original
  1. <?php
  2.  
  3. header("Content-type: text/vnd.wap.wml");
  4. header("Cache-control: no-store,no-cache,must-revalidate");
  5.  
  6.  
  7. echo '<?xml version="1.0" encoding="utf-8"?>
  8. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
  9. <wml><card id="index" title=":: Pagina WAP ::">';
  10.  
  11. echo "<onevent type=\"onenterforward\"><refresh><setvar name=\"message\" value=\"\"/></refresh></onevent>";
  12.  
  13. echo "<p align='center'><input type='text' name='message' maxlength='300'/<br/>
  14. <anchor>Write<go method='post' href='chat.php'><postfield name='message' value='$(message)'/></go></anchor><br/>
  15. </card></wml>";
  16. ?>

Good Luck