Jump to content

check if query string exists


akurtula

Recommended Posts

hi

 

I am wondering if there is way of checking if a query string exists (without any other string)

 

for example:

 

http://site.com?value=string&value2=string

 

i can check if the string exits:

 

if($_GET[value] == true && $_GET[value2] == false){
//perfect
}

 

however, there are a lot of combinations where "value" strings apears.

so is there a way of checking if ONLY one string exists?

 

hope you can help

 

thanks

Edited by akurtula
Link to comment
Share on other sites

  • 2 weeks later...

I have tried checking Request["foo"] as well as Request.QueryString["foo"] and I get null for both. I have also tried populating a List with the values from the QueryString collection but as I mention below, it does not include the value.

Edited by falkencreative
Link Deleted - No Spam Please (and, btw, 'professional' is spelled with ONE f, only)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...