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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -