Hallo,
ich möchte per select box die variable L übergeben:
$content='
<form action="'.$this-">pi_getPageLink($GLOBALS['TSFE']->id).'" [b]method="GET"[/b] >
<select bname="L" b="" style="width:100px;" onchange="submit(this.form)">
<option bvalue="1" b="">de</option>
<option bvalue="2" b="">en</option>
<option bvalue="3" b="">cz</option>
</select>
</form>
';
Die url sieht nach dem Selektieren je nach Auswahl so aus:
...cz/test.html?L=1
...cz/test.html?L=2
...cz/test.html?L=3
es wird also als get parameter erkannt. Das cz aus realurl, was für die sprache steht, ändert sich aber nicht.
wenn ich das ganze per textlinks ohne selectbox mache, dann klappt alles:
$content .= $this->pi_linkTP("de",array("cat_id" => $_GET['cat_id'],"L" => 1),1,$GLOBALS['TSFE']->id);
$content .= $this->pi_linkTP("en",array("cat_id" => $_GET['cat_id'],"L" => 2),1,$GLOBALS['TSFE']->id);
$content .= $this->pi_linkTP("cz",array("cat_id" => $_GET['cat_id'],"L" => 3),1,$GLOBALS['TSFE']->id);
Was mache ich falsch?
lg tobi