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 8273577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:31:31+00:00 2026-06-08T07:31:31+00:00

I believe I am a bit confused with the isset function in PHP. I’m

  • 0

I believe I am a bit confused with the isset function in PHP. I’m trying to use this function to determine is a field in a form is null… I was under the impressions that the isset function checks to see if a field has a value in it… but I believe the isset function only determines if the thing passed to it exists.

For example.

If I have a form input field with the name attribute set to “day”. I would use isset($_GET['day']); to determine if the form input field is not null? Or does isset just check to see if the ‘day’ exists and doesn’t check that value that it passes?

Any help would be great!
Thanks!

  • 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-08T07:31:32+00:00Added an answer on June 8, 2026 at 7:31 am

    From the PHP isset() page:

    [isset() determines] if a variable is set and is not NULL.

    This means that:

    $var1;
    $var2 = NULL;
    $var3 = 0;
    $var4 = 'test';
    isset($var1); //false
    isset($var2); //false
    isset($var3); //true; note that if($var3) still returns false
    isset($var4); //true
    isset($var0); //false
    

    To sum up that bit up there, isset() returns FALSE if the variable is either not set (hence the function name) or contains NULL as a value. For isset() to return true, a variable has to both exist and contain an actual value (boolean false included).

    In your case with $_GET['day'], you can use isset() to check if a value has actually been passed to it (i.e., that it’s not null).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is a bit strange and believe me it's not the way
I believe that this topic is very important to discuss a little bit since
I am a little bit confused trying to implement a very simple mutex (lock)
I believe it's pretty stupid, and I am a bit embarrassed to ask this
I'm getting a bit confused how delegation works. I believe the idea is to
I am a little bit confused about the use of Thread.yield() method in Java,
A bit of Googling led me to believe that this error happens in Rails
I believe I've set this up correctly. Can somebody see anything wrong with this
I believe what I am trying to accomplish should be a fairly common task,
I believe this is a fairly simple question but it is something I am

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.