The part of a URL after the ? (question mark), containing parameter=value pairs separated by & (ampersand). In a request made to a web application at a particular URL, the parameter+value data in the query string is parsed/consumed by the web application on the backend that receives the request.
Questions tagged [query-string]
3924 questions
1
vote
1 answer
Noindex Session ID pages with htaccess
I have many pages with the parameter SID= indexed in Google which I would like to noindex, eg https://www.example.com.au/checkout/cart/?SID=c79e6055436bf371a02f4d2601cecd03
I have used the following code in htaccess but it doesn't seem to…
bondimedical
- 191
- 11
1
vote
1 answer
Rewrite url query string to path
I have a URL like this:
/user/registration/?user_group_id=Buyers
I would transform it in:
/user/registration/buyers/
I tryed many ways but they didn't worked, mod rewrite is enblaed and worked for other instructions.
in my htaccess:
RewriteEngine…
papababa
- 11
- 3
1
vote
2 answers
How to send textbox value to a CGI script
I have a textbox with id kTb. When I click the button after entering some value in the textbox, the below changeV(str) is called inside a javascript ('onClick="changeV(kTb.value)"'). The 'alert(str)' gives me the value I entered in the textbox but…
chella
- 13
- 2
1
vote
1 answer
parse a query-string in multi-dimensional array format to actual array
I am trying to create an extensive search url with this format ?filter[1][field]=brandId&filter[1][operand]=>&filter[1][values][]=firstvalue but I cant seem to figure out a way to convert this (string) to an actual array (map/slice or anything i can…
Rohit Hazra
- 660
- 9
- 25
1
vote
2 answers
ASP.Net MVC Routing URL QueryString
Is there a way to link to another View that displays search results without having to use a querystring? For example, I know that I can do the following:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(string txtOrderNumber)
{
return…
Papa Burgundy
- 6,197
- 6
- 37
- 48
1
vote
2 answers
apache query string rewrite rules
I am setting up Query string redirect :
expo.com/en/general/campaigns/on-second-thought.html?slide=ost-2016-tank to
expo.com/en/general/campaigns/on-second-thought/ost-2016-tank.html
RewriteCond %{HTTP_HOST} ^(.*)expo\.com
RewriteCond…
Kalyan K
- 11
- 2
1
vote
1 answer
How get data from string like query string with php?
I have url like this
index.php?name=aya&age=29
index.php?name:aya&age:29
I want get name and age from this url.
I think if i can get query string, perhaps i can render it.
How can do it?
parseha
- 170
- 1
- 8
1
vote
0 answers
ASP.Net Core multiple-query Get
I am working on a simple todo list Api and have a get method that keeps growing with additional optional queries as I expand the functionality of the API. This seems to work fine, but I wanted to know if there is a cleaner way to pass in queries.…
Pezetter
- 2,622
- 2
- 17
- 37
1
vote
0 answers
How to Authorize an API call c#
I am trying to use Microsoft face API software in c#. The first step says I need to authorize the API read below for instructions:
Every call to the Face API requires a subscription key. This key needs to be either passed through a query string…
Evan Arends
- 69
- 1
- 4
1
vote
4 answers
Use javascript to convert form with arrays to comma separated query strings without duplicates
I want to change a query string from
?firstArray[]=0001&firstArray[]=0002&secondArray[]=0003&secondArray[]=0004 to
?firstArray=0001,0002&secondArray=0003,0004
I think I'm almost there, but the problem I have is that the array values are the same…
Marc
- 229
- 3
- 13
1
vote
2 answers
Laravel 5.1 query string parameter not working in pagination
I am using laravel 5.1 pagination. But its not working. I guess the problem is accessing query string parameter.
routes.php
Route::get('blogs', 'front\FrontController@blog');
Controller
public function blog(Request $request)
{
…
Md. Mahmud Hasan
- 842
- 5
- 20
1
vote
1 answer
Exclude a WordPress custom taxonomy term from query_posts()
I've added the following code on one of my archive pages, just before the loop. I need this particular archive to display in alphabetical order, rather than chronological. This does what it's supposed to do.
global $query_string;
$posts =…
Adam Nerland
- 33
- 5
1
vote
2 answers
Best way to toggle Div Visibility depending on Query String in c#?
I have about 20 div's in an aspx page. At any time, only one of them will be visible. I need to decide which div to show depending on the Query String.
http://...?mode=
The easy way would be to start with all div's invisible, then just…
iamserious
- 5,109
- 11
- 37
- 57
1
vote
1 answer
Passing parameters in URL query string to Action through interceptor
I have an interceptor that is working fine except the query string is not being passed on to the action from the interceptor.
…
Nick
- 457
- 1
- 4
- 8
1
vote
4 answers
Keeping track of Turn By Using QueryString
I'm trying to create a game; When I click a button, I need to go to another page by using Query string, I need to know which button is clicked (Button1), and how many times it's clicked(Turn). Here's my code:
int Turn = 0;
protected void…
Miss.Alpha
- 111
- 1
- 10