Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7844

Re: Gettting values from URL in PHP 5.4

From "Tim Rude" <timrude.nospam@nospam.hotmail.com>
Newsgroups comp.lang.php
Subject Re: Gettting values from URL in PHP 5.4
Date 2012-12-18 14:02 -0600
Organization A noiseless patient Spider
Message-ID <kaqi54$1mm$1@dont-email.me> (permalink)
References <kaqadm$bba$1@dont-email.me> <kaqf2q$7nr$1@speranza.aioe.org> <kaqh46$pck$1@dont-email.me>

Show all headers | View raw


"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message 
news:kaqh46$pck$1@dont-email.me...
> On 12/18/2012 2:12 PM, Christoph Becker wrote:
>> Tim Rude wrote:
>>> With PHP 4, it works perfectly.
>>
>> The working of the code is actually not directly related to the PHP
>> version, but to the PHP ini setting "register_globals"
>> (<http://php.net/manual/en/security.globals.php>).  This setting has
>> been finally removed from PHP 5.4.
>>
>> How to fix your existing code has already been explained by Salvatore.
>> I would prefer using $_GET, $_POST or $_COOKIE instead of $_REQUEST.
>>
>
> I agree.  Use the proper array - $_GET, $_POST or $_COOKIE.
>

Thank you all. Fortunately I only have this code in 6 spots on one page, so 
it's an easy fix to add the $_GET.

Much obliged. :)

Tim Rude 

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Gettting values from URL in PHP 5.4 "Tim Rude" <timrude.nospam@nospam.hotmail.com> - 2012-12-18 11:50 -0600
  Re: Gettting values from URL in PHP 5.4 Salvatore <sal@yojimbo.hack.invalid> - 2012-12-18 17:55 +0000
  Re: Gettting values from URL in PHP 5.4 Christoph Becker <cmbecker69@gmx.de> - 2012-12-18 20:12 +0100
    Re: Gettting values from URL in PHP 5.4 Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-18 14:44 -0500
      Re: Gettting values from URL in PHP 5.4 "Tim Rude" <timrude.nospam@nospam.hotmail.com> - 2012-12-18 14:02 -0600

csiph-web