php super globals

Posted on 2009-12-20
Last Modified: 2012-06-27
So i $_REQUESTS holds all get post and cookies, why would you ever need to use $_GET, $_POST, or $_COOKIE.  The only reason i can think of is that if their is a $_POST['name'], and $_COOKIE['name']  or maybe im just confused.
Question by:cone13cone
    1 Comment
    LVL 11

    Accepted Solution

    Well, that alone is a good reason.

    From a security point of view, I wouldn't like users to mimic a form-submission by using URL parameters ($_GET).  In other words, when checking a username/password, for example, I would like to make sure that they are coming from a form (POST), and not being "hard-coded" into the URL (GET).

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now