Wml To Xhtml -- Form Error

Started on the old forum in January 2007 · view the original in the archive · old links redirect here

4 replies · 751 views · started 19 years ago · 1 min read

2 participants
Guest #1

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.

Guest #2

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.

Guest #4
<form action="blah.asp" method="post">

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

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