PHP url problems
In other words the user makes a choice from the drop down menu and that triggers the page to return with a new url ex. www.kasa.com/tech.php?update=travel. From here if the user made a mistake and wanted to change the choice it just adds to the existing url like this www.kasa.com/tech.php?update=travel?update=time. I want to get rid of the first update and replace it with the new one, so that the php can pick it up and send it to the right script.
self.location.href += '?'+this.name+'='+escape(this.options[this.selectedIndex].value);
That needs to be changed to something more like this:
self.location.search = '?'+this.name+'='+escape(this.options[this.selectedIndex].value);
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)