Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-05-2005, 11:06 AM   PM User | #1
Smithereens
New to the CF scene

 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smithereens is an unknown quantity at this point
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>
Smithereens is offline   Reply With Quote
Old 08-05-2005, 12:53 PM   PM User | #2
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
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
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Old 08-05-2005, 01:02 PM   PM User | #3
Smithereens
New to the CF scene

 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smithereens is an unknown quantity at this point
You're a genius, t hanks a million,!!!
Smithereens is offline   Reply With Quote
Old 08-05-2005, 01:22 PM   PM User | #4
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
lol no prob
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:13 AM.


Advertisement
Log in to turn off these ads.