javascript - Passing variable to a PHP page with Spaces -
I have a selected element as shown below. I'm passing the value of an option as a variable on a PHP page as the javascript is shown below:
Now that I am able to resize $ _GET ['area1'] in PHP page; When Queenstown is selected, but whenever I am trying to pass Queens Town, it is working now. Anyone can help.
You have to run correctly with the values, otherwise you will end up with a URL like this: / p>
selectcity.php? City1 = xyz and area1 = Queens Town The one you want is not likely to work. Use it instead:
var data = {city1: city1, area1: $ ('# regions'). Val ()}; $ ('# List') Load ('selectcity.php?' + $ .premium (data)); Also see:
Comments
Post a Comment