Jump to content

Problems capturing user input


Guest Bubba Lennerton

Recommended Posts

Guest Bubba Lennerton

I have what appears to be an elementary XML page to be accessed by a web capable phone. The problem is that despite the user input the variables are not populated OR they are not properly displayed. Code appears below:

<?xml version="1.0"?><!DOCTYPE wml PUBLIC	"-//WAPFORUM//DTD WML 1.1//EN"	"http://www.wapforum.org/DTD/wml_1.1.xml"><wml>   <card title="onenterforward example">     <!-- Initialize state to zero on first entry. -->     <onevent type="onenterforward">        <refresh>            <setvar name="state" value="0"/>        </refresh>     </onevent>     <!-- Collect some information from the user. -->     <p><input name="text"/></p>     <!-- Send the text and the state to the server. -->     <do type="accept">        <go href="#card2">            <postfield name="s" value="$(state)"/>            <postfield name="t" value="$(text)"/>        </go>     </do>  </card>			  <card id="card2" title="Pg2">     <onevent type="onenterforward">        <refresh>           <setvar name="my_temp_id" value="123456"/>        </refresh>     </onevent>       <p>s is: $(s)</p>     <p>t is: $(t)</p>  </card></wml>

Any ideas?[edit] wrapped xml in code box - skemcin

Edited by Skemcin
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...