Jump to content

query string with 1 variable but choices of value


alleyCat

Recommended Posts

Generally the way to send multiple values for one property over the querystring is to simply duplicate the property, e.g.

http://www.w3schools.com/index.html?id=20&id=30

Obviously, whether this is suitable will depend on how you plan to retrieve the values though.

Link to comment
Share on other sites

hi how to pass query string with one variable but more than one choices of value. eg: http://www.w3schools.com/index.html?id=20 or30

You can use some special characters as seperator between two values. Like double Pipe / Comma / !!
And then on the target page you can split the variable and use it
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...