Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7997669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:01:02+00:00 2026-06-04T15:01:02+00:00

If I were to call: www.*.com?hello if($_GET[hello]){ } It will always return false because

  • 0

If I were to call:

www.*.com?hello

if($_GET["hello"]){
}

It will always return false because ?hello variable needs to be set as something…

Is there a way to get the ? part without setting the variable to anythign before hand?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:01:03+00:00Added an answer on June 4, 2026 at 3:01 pm

    You can check if variable is set like this:

    if(isset($_GET["hello"])){
    
    }
    

    sometimes key_exists() is better because if $_GET["hello"] == null you can get false

    if (key_exists("hello", $_GET)) {
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 domains. For the question, I will call them www.old.com and www.new.com.
I've got a website, let's call it www.example.com In that website there are two
There is a website that I visit often... let's call it www.example.com. And, I
I know about AJAX cross-domain policy. So I can't just call http://www.google.com over a
I'm on http://www.mywebsite.com , and I do a cross-domain ajax call (with jQuery) to
I want to make an AJAX call from www.mysite.com to api.mysite.com. Is this possible?
I'm looking at a web site we'll call www.example.com . A quick traceroute www.example.com
My domain (let's call it www.example.com) creates a cookie. On another site (let's say,
I have 2 different domain, let's call them www.foo.com and bar.foo.com. The first one
I created a SOAP server outside of Magento (lets call it www.example.com/soap/). The directory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.