2Links in selectbox

noFreakman

Mitglied
Hallo Leute,

ich habe eine Selectbox die wie folgt aussieht:

PHP:
<form name="form2" method="post" action="">

<select name="select">
option>Login wählen</option>
<option >TCM-Apotheke</option>
<option>Internetbenutzer</option>
 </select>

</form>

Nun muss folgendes geschehen. Wenn der erste Wert ( TCM-Apotheke) ausgewählt wird muss er beispielsweise zu unterseite tcm-apotheke.php

Und wenn Internetbenutzer ausgewählt wird, muss die unterseite internetbenutzer.php erscheinen?

Kann mir jeamnd helfen?
 
HTML:
<form name="form2" method="post" action=""> 
 
<select name="select" onchange="window.location.href=this.options[this.selectedIndex].value">
	<option value="loginwaehlen.php">Login wählen</option> 
	<option value="tcm-apotheke.php">TCM-Apotheke 
	<option value="internetbenutzer.php">Internetbenutzer 
 </select> 
 
</form>
 
Zurück