Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form / Drop down List

    Hi folks,

    I have a small problem, I'm quite new to html and am trying to design a page where I can change languages. What I want is a drop down menu where I can swap over and back as I choose to the equivalent page in german/english) without having to go back to the start page to choose the language, I had thought of using frames but that just means having to create too many extra html pages.

    Any ideas?

    Here's what I have (the problem is with the "form action")

    I was told I may have to use Javascript, but I have no idea of js, can anyone help me out?

    <form action="German_me.html" name="form" method="post">
    <input type="hidden" name="mailUrl" value="">
    <table >
    <tr>
    <td>

    <label for="Language"><span class="labeltxt">Language</span> </label>
    <select id="Language" name="countryselect" title="Language" tabindex="10">

    <option value="German_me.htm">Deutsch</option>
    <option value="english_me.html.">Englisch</option>


    </select>
    </td>
    <td><label for="Language"> <input type="submit" alt="Choose" class="button" value="Go!" tabindex="21" ></label></td>

    </tr>
    </table>
    </form>

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP Code:
    <form name="frm">
    <
    input type="hidden" name="mailUrl" value="">
    <
    table >
    <
    tr>
    <
    td>

    <
    label for="countryselect"><span class="labeltxt">Language</span></label>
    <
    select id="countryselect" name="countryselect" title="Language" tabindex="10">
    <
    option value="German_me.htm">Deutsch</option>
    <
    option value="english_me.html.">Englisch</option>
    </
    select>

    </
    td>
    <
    td>

    <
    input type="button" alt="Choose" class="button" value="Go!" onClick="window.location=document.frm.countryselect.options[document.frm.countryselect.selectedIndex].value" tabindex="21"></td>

    </
    tr>
    </
    table>
    </
    form

  • #3
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're a genius, t hanks a million,!!!

  • #4
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    lol no prob


  •  

    Posting Permissions

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