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

  • Home
  • SEARCH
  • 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 9075007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:45:59+00:00 2026-06-16T18:45:59+00:00

The problem I’m facing is quite common I suppose but I didn’t see a

  • 0

The problem I’m facing is quite common I suppose but I didn’t see a single thread in internet.

If I use isset($_POST),

  1. Will it always return true?
  2. Does the response depend on the version of PHP I use?
  3. Is $_POST is a variable? (it’s a super global ‘variable’ after all). Because in php.net documentation, it is mentioned

isset() only works with variables as passing anything else will result in a parse error.

  • 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-16T18:46:00+00:00Added an answer on June 16, 2026 at 6:46 pm

    Will it always return true?

    Yes, even if the page was opened using GET method or nothing was POSTed.

    Does the response depend on the version of PHP I use?

    No it does not (not sure about very old versions of PHP).

    Is $_POST is a variable?

    Yes

    isset() only works with variables as passing anything else will result in a parse error.

    This is explicitly mentioned in the manual so that people do not try to do cheaky stuff. These won’t work for example:

    function getVarName() { return '_POST'; }
    isset(getVarName());
    isset('$_POST');
    

    Now, why would you want to check if $_POST is set. Perhaps want to check if a certain variable (e.g. email) was posted, in that case you need to check:

    isset($_POST["email"])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem is I can see already the value of my json through firebug but
Problem: I have a table that prints out vertical but I would like it
Problem : Need onclick event to pause/unpause a Youtube video, but impossible to add
Problem: Visitors open the url website.com/?i=133r534|213213|12312312 but this url isn't valid anymore and they
Problem : js2coffe does work only with single file input/output redirection. to convert a
Problem : i'm trying to add a 2nd Jpanel in my frame but when
PROBLEM SOLVED. Special thanks to Andrew Noyes for explaining its not a class but
Problem: Following error is arising if I use NavigatorContent in Repeater. Is there a
Problem: Trying to create a Mix that is applied to the AVPlayerItem, but it
Problem: returns array, but not in json. Result: must return array with in array.

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.