How To Make Dropdown Menu In Wml?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How To Make Dropdown Menu In Wml?

    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

    #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[/b]

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

    Comment


      #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.

      Comment


        #4
        Code:
        echo &#39;<select>&#39;;
        echo &#39;<option onpick="site1.wml">SITE 1</option>&#39;;
        echo &#39;<option onpick="site2.wml">SITE 2</option>&#39;;
        echo &#39;<option onpick="site3.wml">SITE 3</option>&#39;;
        echo &#39;<option onpick="site4.wml">SITE 4</option>&#39;;
        echo &#39;</select>&#39;;

        Comment


          #5
          Code:
          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.




          Comment


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

            R.M.C
            ----------
            PHP Adovocate B)

            Comment


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

              thanks guys

              Comment


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

                thanks guys[/b]

                u dont need an anchor link for what i posted

                Comment


                  #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

                  Comment


                    #10
                    Code:
                    echo &#39;<select name="site">&#39;;
                    echo &#39;<option value="site1.wml">SITE 1</option>&#39;;
                    echo &#39;<option value="site2.wml">SITE 2</option>&#39;;
                    echo &#39;<option value="site3.wml">SITE 3</option>&#39;;
                    echo &#39;<option value="site4.wml">SITE 4</option>&#39;;
                    echo &#39;</select>&#39;;
                    
                    echo &#39;<anchor>[GO]<go href="send.php" method="post">&#39;;
                    echo &#39;<postfield name="site" value="$(site)"/>&#39;;
                    echo &#39;</go>&#39;;
                    echo &#39;</anchor>&#39;;
                    in send.php
                    Code:
                    <?php
                    
                    $site = $_POST[&#39;site&#39;];
                    
                    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

                    Comment

                    Working...
                    X