Hi,
<select name="changeLand" id="changeLand" onchange="javascript:window.location = (document.URL + '?action=changeLand&id=' + this.value);">
Schmeiss das javascript: aus dem onchange-Attributwert raus, es ist sinnfrei.
Problem ist was ich habe ist, wenn man bereits auf einer Adresse drauft ist die lautet index.php?action=rename und dann den oben geschriebe Option ausführt. Gelangt man auf folgende seite "index.php?action=rename?action=changeLand&id=2"
Wie kann ich das verhindern das 2x ein "?" bzw. "?action=" aufgerufen wird.
http://de.selfhtml.org/javascript/objekte/location.htm#pathname
MfG ChrisB
--
Light travels faster than sound - that's why most people appear bright until you hear them speak.
Light travels faster than sound - that's why most people appear bright until you hear them speak.