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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -