How To Make Dropdown Menu In Wml?

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

9 replies · 2,232 views · started 18 years ago · 1 min read

3 participants
Guest #1

hi guys, im just learn wml and i need help how to make dropdown link menu in wml code?

i mean like this in html: echo "<form name="test">"; echo "<select name="test">

<option value="http://somesite.com">link 1</option> <option value="http://somesite.net">link 2</option> <option value="http://somesite.org">link 3</option> <option value="http://somesite.biz">link 4</option> and so on..

Thanks for any help

wizard Senior · 493 posts #2

hi guys, im just learn wml and i need help how to make dropdown link menu in wml code?

i mean like this in html: echo "<form name="test">"; echo "<select name="test">

<option value="http://somesite.com">link 1</option> <option value="http://somesite.net">link 2</option> <option value="http://somesite.org">link 3</option> <option value="http://somesite.biz">link 4</option> and so on..

Thanks for any help

what do u want to do, use with an anchor or select a link in d menu?

Guest #3

i dont get it bro, well u see in this forum there is a dropdown list to jump to other categories or forums, but in this case i want jump to another site like google, yahoo, etc.

wizard Senior · 493 posts #4
echo '<select>';
echo '<option onpick="site1.wml">SITE 1</option>';
echo '<option onpick="site2.wml">SITE 2</option>';
echo '<option onpick="site3.wml">SITE 3</option>';
echo '<option onpick="site4.wml">SITE 4</option>';
echo '</select>';
crazybrumi Super moderator Principal · 1,064 posts #5
echo "<select name=\"site\">";
echo "<option value=\"site1\">Site1</option>";
echo "<option value=\"site2\">Site2</option>";
echo "<option value=\"site3\">Site3</option>";
echo "</select>";

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

mcKeny Developer · 130 posts #6

In this case you would use the onpick attributes instead of value just as wiz did

R.M.C

PHP Adovocate B)

Guest #7

can u give me the complete code? inludes the anchor area

thanks guys

Guest #9

thanks wiz it works, but works only in mobile phone browser and not in opera n symbian netfront browser, thats why i need a wml button to submit the dropdown menu

wizard Senior · 493 posts #10
echo '<select name="site">';
echo '<option value="site1.wml">SITE 1</option>';
echo '<option value="site2.wml">SITE 2</option>';
echo '<option value="site3.wml">SITE 3</option>';
echo '<option value="site4.wml">SITE 4</option>';
echo '</select>';

echo '<anchor>[GO]<go href="send.php" method="post">';
echo '<postfield name="site" value="$(site)"/>';
echo '</go>';
echo '</anchor>';

in send.php

<?php

$site = $_POST['site'];

header("location:$site");

?>

to go to ur local pages just put page.extension but for offsite pages but full link including http:// for the value

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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