...

View Full Version : Form / Drop down List



Smithereens
08-05-2005, 11:06 AM
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>

mark87
08-05-2005, 12:53 PM
<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>

Smithereens
08-05-2005, 01:02 PM
You're a genius, t hanks a million,!!! :thumbsup:

mark87
08-05-2005, 01:22 PM
lol no prob :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum