query-string

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 when I pass it 'urll = "uSetENV.cgi?kullaTest=str"', I am NOT getting the entered value, it...

Sending sensitive data as a query string parameter

We are reviewing the design of a system. And need to verify what we think may be a security issue. In this system some sensitive information is sent in the query string. Question is: Can the query string parameters be read as the request goes over the internet, even if the request is sent over https? Can the query string parameters be...

ASP.NET MVC: How can I pass a querystring variable

I've worked on web forms for a while and am not used to mvc. Here is what i want to do: <% if guest tehn %> URL.RouteURL("AcccountCreate?login=guest") <% end if %> However I can't do this because it says a route with this name has not been created. And I am assuming it would be silly to create a route for this. ...

How to pass query string parameters to the PHP binary?

I am developing a webserver that invokes the PHP binary (via CGI) to process a script. Here's the problem: The PHP script isn't picking up the command line parameters. For example, if the client requests path/to/file.php?test=value, the $_GET array is empty. I have tried passing the parameters in an environment variable (QUERY_STRING)...

WCF REST : Case insensitive Query String Parameters, suggested naming convention - use underscore or ???

Hi there, It appears the query string parameters you can pass to a rest method in WCF REST is case insesitive - actually this makes sense. What the best naming convention for parameters with 2 words, using an _ (underscore) ?? I never liked this, i prefered to use camelCasing but if its insensitive what other options to do i have? for...

Need to pass a querystring variable in MVC, so i can use it with jquery?

SO i would like to create this url blah.com/preview?h=yes so i can do this <% if request.querystring("h") = "yes" then %> jquery stuff <% else %> don't do jquery stuff <% end if %> ...

Multi Query PHP Question

I wanted to execute multiple queries in one. Is there a way to condense a bunch of queries into one big string and then execute it? Thanks in advance. ...

how to disable the querystring value once the page has been loaded

How to disable the querystring value once the value from is extracted $(document).ready(function() { var page1 = Request.QueryString("page1"); alert(page1); if (page1 == 1) { // i will execute my code here ............ ........ ....... } else { $("#SearchButton").click(function() { }...

ViewState, QueryStrings and their effect on SEO

Well, to start with, I'm a novice ASP.Net/C# programmer, and had an experience only of a couple of projects during college and a couple of freelancing projects when I was recruited by a startup company to build their ASP.Net based website. I've just abut completed the website, and now since the company is not able to find a worthy enough...

Sending a regEx pattern as a parameter in a query string

I have to design a RESTful client and service in Java. For a GET request, i need to send a regEx pattern as a query parameter. in the client i'm sending the pattern as http://localhost:6520/restservice/foo?pattern=^BP$ i'm getting Illegal Endpoint address exception. I even tried http://localhost:6520/restservice/foo?pattern='^BP$' and i...

Formatting asp.net label when the value is sourced from a query string

Afternoon all. A very simple one for you today from thicky Rich. I have a label I want to display as a lovely number format i.e. {0:N0} Now, this label text equates to a query string value. How do I go about formatting a label's text from a query string value in one fell swoop? I have tried this lblTotalPurchQS.Text = String.For...

Wordpress Plugin Development: send query string parameters

I'm developing my first Wordpress plugin, and I have one line which deletes an entry. I have to use query string parameters to pass in the action and the object id. My code is: $pageText .= '<td><a href="'.$_SERVER['REQUEST_URI'].'?useraction=delete&domainid='.$file.'">Delete</a></td></tr>'; This creates a 'delete' link and populates ...

C# ASP.NET : Dynamically constructing an url query string

Hello all, I need to dynamically construct a url by appending new parameter to the current url. I know how to do this in the long way by getting the current url and check if there is any QueryString, if no add "?" if yes add "&". Also check is the parameter is already exist. If yes change the value. But is there any build in .NET func...

jQuery post to asp.net page error : The length of the query string for this request exceeds the configured maxQueryStringLength value.

I am trying to do a jQuery post the content of a text editor to an asp.net page (asp.net 4.0) from my javascript.The asp.net page will receive it and save it to db.I append the text editor's content in the querystring.When the content is big, I am getting the following exception The length of the query string for this request exceeds th...

MYSQL: Using GROUP BY with string literals

I have the following table with these columns: shortName, fullName, ChangelistCount Is there a way to group them by a string literal within their fullName? The fullname represents file directories, so I would like to display results for certain parent folders instead of the individual files. I tried something along the lines of: GRO...

Regular expression for fixed string

Hi friends, I have following string. ?page=1&sort=desc&param=5&parm2=25 I need to check whether the enter string url is in strict format except variable value. Like page=, sort=, param=, param2. Please suggest regular expression. Thanks ...

PHP Query String Manipulation

Any one have the ultimate PHP function(s) to add/remove parameters from a query string? It needs to handle all possible cases, Ive seen ones that handle some cases, but not all. Some example cases: http://mysite.com?param1=1&amp;param2=2 http://www.mysite.com/?param1[]=1&amp;param1[]=2 ftp://user:[email protected]/files/uploads/?param1=...

how can i remove perticular value from query string for e.g Default.aspx?name="my name is abc"

how can i remove perticular value from query string for e.g Default.aspx?name="my name is abc" i want to remove 'abc' from above query string . how can i do that?? i just want to show 'my name is' as a output ...

Java+JSP: Query String handling

Hi, How the best way to handle query strings in Java JSP? The method request.getQueryString() returns only a strings, how can I get the value of a specific string? Should I parse that string? thanks ...

How do I get the silverlight view page name and querstring from silverlight code behind?

VS2010 w/Ria Services & SL4. I already have my SL app loaded in the browser. User clicks around to different view pages and I would like to store their current location in a list of "recently visited pages". To do that, I need to store the view page + any existing querystring key/values. Ex: here is a real page in my sl app: http://...