Questions tagged [query-string]

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.

See also: https://en.wikipedia.org/wiki/Query_string

5108 questions
1
vote
1 answer

flashvars not working with alphanumeric value read from url

I have a problem with flashvars , when I read the url from browser if I have assigned just numbers to Id (my paramter in url) ,everything works fine, but if my id includes character, then it does not work , I don't want to change anything in flash…
Mahsa
  • 115
  • 2
  • 11
1
vote
5 answers

Dynamic pages in PHP for a beginner?

I've created a PHP script which is for an online radio station:
1
vote
1 answer

Asp.net MVC ReturnUrl variable not showing up with method FormMethod.Post in Html.BeginForm

The default template in MVC3 sets a 'returnurl' variable in the query string of the logon page. This page then posts back to a controller @using (Html.BeginForm()) { That is then picked up in the controller like so [HttpPost] public…
Dan dot net
  • 6,119
  • 5
  • 28
  • 25
1
vote
2 answers

MVC Action with QueryString parameter that has no key

Given a URL like: mysite.com/view/?http://www.youtube.com/ Is it possible to capture the Query String value in the parameters of an action. public ActionResult View(string query = "") { ... } I can get the value by calling QueryString[0] which is…
Phill
  • 18,398
  • 7
  • 62
  • 102
1
vote
1 answer

Dynamically Populate Custom Field (Gravity Forms)

I've got a form that calculates how many times a person has chosen a value. Each question has 3 answers with a value of either "self", "others", or "social". Whichever has the MOST gets returned as the result. Ultimately, I need a custom post field…
Xhynk
  • 13,513
  • 8
  • 32
  • 69
1
vote
2 answers

cannot pass query string values for rewritten URLs

I'm struggling to implement a URL change on a site. Firstly I'm wanting to only implement this URL change at a subdirectory level.. I have WordPress installed at the root but I'm in the process of creating a custom classifieds section. This sits…
Chris
  • 31
  • 1
1
vote
2 answers

how to load a specific data depending on query string(in ASP .NET)?

Here is the scenario: I have 1 master page and web-forms in that master page, All these forms are considered as Modules. Now each module will have sub menus in it. e.g main.master abc.aspx, xyz.aspx, uvw.aspx sub menu of abc.aspx will be like this…
Ahmed
  • 104
  • 1
  • 1
  • 10
1
vote
2 answers

In C#, how can I construct and parse nested querystrings?

I'm writing an API and would like people to be able to supply a Google Charts API call as an argument. What's the proper way to deconstruct this problematic API call, where an argument contains an entirely separate API call? For…
Hairgami_Master
  • 5,429
  • 10
  • 45
  • 66
1
vote
0 answers

How do I get request parameters URLs with Node.js

Possible Duplicate: how to get GET (query string) variables in node.js? I am very new to Node.js and am trying a few simple examples to get familiar with what it can do. I am trying to pull values from a request's query string but can seem to…
travega
  • 8,284
  • 16
  • 63
  • 91
1
vote
4 answers

How can I change the value of a querystring with mooTools?

Given a string containing an absolute URL with a querystring parameter, what is the easiest way to replace the value of the parameter using JavaScript and/or MooTools? e.g. // Change this '/foo/bar?frob=123456789' // Into…
Greg B
  • 14,597
  • 18
  • 87
  • 141
1
vote
1 answer

Turning search query into directory format

I want to turn my search URLs into directory format, meaning I want to turn: /search?q=hi Into: /search/hi How can this be done with .htaccess? I already have this in my .htaccess to remove the .php from the pages: RewriteEngine On RewriteCond…
Nathan
  • 11,814
  • 11
  • 50
  • 93
1
vote
1 answer

Does Response.RedirectPermanent automatically pass querystring variables?

I have googled to death this to no avail. I have a page that we no longer want to use, however, dpending on how it was called, I want to pass the querystring along if there is one. I wrote some ugly code to add the querystring if there is one, but…
user587935
  • 13
  • 2
1
vote
2 answers

QueryString and RenderAction

I'm setting a class on my html tag when a specific query string argument is sent, right now I'm doing it like this (Razor view master page): @if (HttpContext.Current.Request.QueryString.AllKeys.Contains("Foo") &&…
Victor
  • 3,999
  • 3
  • 24
  • 27
1
vote
1 answer

PHP Empty query string variables $_GET

Do you see a problem with using the following convention for "views" (as in MVC). webpage.php?past script.php?all page.php?about For the PHP itself, I check for those values as such: if(isset($_GET['past'])){ ... } else { ... } This works…
AVProgrammer
  • 1,344
  • 2
  • 20
  • 40
1
vote
1 answer

Decoding Encrypted Query string

I am using the method described in the following LINK and I am using the following code to encrypt: 'Page1.aspx Protected Sub butEncrypt_Click(sender As Object, e As EventArgs) Handles butEncrypt.Click Dim QueryString As String =…
Mark Kram
  • 5,672
  • 7
  • 51
  • 70