×

Discussion Board

Results 1 to 3 of 3

Thread: WML code

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    1

    WML code

    can anyone help me? does anyone know of a simplier way of polling? or whats wrong with this:
    <wml><head></head><card id="splash" ontimer="#MainCard" title="E-democracy Site"><timer value="55"/><p align="center"><img src="wap site.wbmp" alt="Voting"/><br/>Loading<br/><a href="#MainCard">VOTING</a><br/>. . .</card><card id=MainCard" title="Polling system"><a href="#Sport">Sports Vote</a><br><a href="#Soaps">Soaps Vote</a><br><a href="#Films">Films Vote</a><br></card><card id="Sport" title="Sports Poll"> <p> What sport do you like the best?<br/> <select name="response" multiple="true"> <option value="11">Football</option> <option value="12">Rugby</option> <option value="13">Tennis</option> <option value="14">Snooker</option> <option value="15">Hockey</option> <option value="16">F1 Racing</option><option value="17">Motorbike Racing</option><option value="18">Horse Racing</option></select> <br><a href="vote_poll.php?poll=1&response=">Vote now!</a><br/> </p> <a href="#Soap">Soap Vote</a></card><card id="Soap"><p> What is your favourite Soap?<br/> <select name="response" multiple="true"> <option value="19">Eastenders</option> <option value="20">Coronation Street</option> <option value="21">Neighbours</option> <option value="22">Home and Away</option> <option value="23">Hollyoaks</option> <option value="24">Family Affairs</option><option value="25">Emmerdale</option></select> <br><a href="vote_poll.php?poll=1&response=">Vote now!</a><br/> </p> </card><card id="Films"><p> What is your favourite film genre?<br/> <select name="response" multiple="true"> <option value="26">Action</option> <option value="27">Animation</option> <option value="28">Cult</option> <option value="29">Comedy</option> <option value="30">Documentary</option> <option value="31">Romance</option><option value="32">Science Fiction</option><option value="33">Teen Films</option><option value="34">War</option><option value="35">Westerns</option></select> <br><a href="vote_poll.php?poll=1&response=">Vote now!</a><br/> </p> </card></wml>

  2. #2
    Registered User
    Join Date
    Sep 2003
    Posts
    14
    Your code look like a spaghetti ...

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    23

    Use postfields

    Hi andrewb2004!
    You are not allowed to post parameters via <a href="xxx?a=1&b=2">text</a>. You might use postfileds and variables instead.
    In addition you have to be sure that all your tags are closed (i.e. <br/>).

    You might want to try this version of your code:

    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <wml>
    <head>
    <access/>
    </head>
    <card id="splash" ontimer="#MainCard" title="E-democracy Site">
    <timer value="55"/>
    <p align="center">
    <img src="wap site.wbmp" alt="Voting"/>
    <br/>Loading<br/>
    <a href="#MainCard">VOTING</a>
    <br/>. . .</p>
    </card>
    <card id="MainCard" title="Polling system">
    <p>
    <a href="#Sport">Sports Vote</a>
    <br/>
    <a href="#Soaps">Soaps Vote</a>
    <br/>
    <a href="#Films">Films Vote</a>
    <br/>
    </p>
    </card>
    <card id="Sport" title="Sports Poll">
    <p> What sport do you like the best?<br/>
    <select name="response" multiple="true">
    <option value="11">Football</option>
    <option value="12">Rugby</option>
    <option value="13">Tennis</option>
    <option value="14">Snooker</option>
    <option value="15">Hockey</option>
    <option value="16">F1 Racing</option>
    <option value="17">Motorbike Racing</option>
    <option value="18">Horse Racing</option>
    </select>
    <br/>
    <anchor>Vote now!
    <go href="vote_poll.php" method="get">
    <postfield name="poll" value="1"/>
    <postfield name="response" value="$(response)"/>
    </go>
    </anchor>
    <br/>
    </p>
    <p>
    <a href="#Soap">Soap Vote</a>
    </p>
    </card>
    <card id="Soap">
    <p> What is your favourite Soap?<br/>
    <select name="response" multiple="true">
    <option value="19">Eastenders</option>
    <option value="20">Coronation Street</option>
    <option value="21">Neighbours</option>
    <option value="22">Home and Away</option>
    <option value="23">Hollyoaks</option>
    <option value="24">Family Affairs</option>
    <option value="25">Emmerdale</option>
    </select>
    <br/>
    <anchor>Vote now!
    <go href="vote_poll.php" method="get">
    <postfield name="poll" value="1"/>
    <postfield name="response" value="$(response)"/>
    </go>
    </anchor>
    <br/>
    </p>
    </card>
    <card id="Films">
    <p> What is your favourite film genre?<br/>
    <select name="response" multiple="true">
    <option value="26">Action</option>
    <option value="27">Animation</option>
    <option value="28">Cult</option>
    <option value="29">Comedy</option>
    <option value="30">Documentary</option>
    <option value="31">Romance</option>
    <option value="32">Science Fiction</option>
    <option value="33">Teen Films</option>
    <option value="34">War</option>
    <option value="35">Westerns</option>
    </select>
    <br/>
    <anchor>Vote now!
    <go href="vote_poll.php" method="get">
    <postfield name="poll" value="1"/>
    <postfield name="response" value="$(response)"/>
    </go>
    </anchor>
    <br/>
    </p>
    </card>
    </wml>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •