Hi, I hope that someone can help me. I have converted a wml script to a xhtml script. There is one part i'm having problems with. On my site there is a couple of dropdown boxes, and in the wml script the option of the dropdown box is selected acording to the value in my database, but with the xhtml code it always select the first option of the dropdown box.
Wml To Xhtml -- Form Error
Started on the old forum in January 2007 · view the original in the archive · old links redirect here
Hi, I hope that someone can help me. I have converted a wml script to a xhtml script. There is one part i'm having problems with. On my site there is a couple of dropdown boxes, and in the wml script the option of the dropdown box is selected acording to the value in my database, but with the xhtml code it always select the first option of the dropdown box.
I got it right.
you have to start with form tag than the select tag etc... and end everything agein with form tag
Advertise your mobile site for FREE with AdTwirl
Select Something:
<select name="service">
<option value="Nothing_Selected">Select Something</option>
<option value="option1">Display Text</option>
</select>
<input type="submit" name="cmd" class="button" value="Send SMS"/> <input type="submit" name="cmd" class="button" value="Clear"/>
</form>That is a the way it has to be done. You have to nest stuff in the
tags in a form aswell else is will be invalid mobile XHTML