clearing FROM on WML

Started on the old forum in December 2010 · view the original in the archive · old links redirect here

1 reply · 289 views · started 15 years ago · 1 min read

2 participants
leadiztah Developer · 55 posts #1

what is the code in clearing form in wml? please help me..

i planning to set a link naming.. CLEAR TEXT.

and after you click the CLEAR TEXT it will redirect on the page it self.. and it will clear the form.. above the link..

help me.thx

arnage Lead · 811 posts #2

This tag is for XHTML: <input type="reset" value="CLEAR TEXT"/>

WML:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">

<wml>
  <card id="card1" title="WML Form">
    <p>
      User name:<br/>
      <input name="myUserName"/><br/>

      Password:<br/>
      <input name="myPassword" type="password"/><br/><br/>

      <anchor>
        <go method="get" href="resetButtonsProc.asp">
          <postfield name="name" value="$(myUserName)"/>
          <postfield name="password" value="$(myPassword)"/>
        </go>
        Submit Data
      </anchor><br/>

      <anchor>
        <refresh>
          <setvar name="myUserName" value=""/>
          <setvar name="myPassword" value=""/>
        </refresh>
        Reset Form
      </anchor>
    </p>
  </card>
</wml>

From: WML Tutorial: Reset Buttons in HTML and WML

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close