Re: PHP and Form Data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2002-10-24 at 00:00, David wrote:
> On 23 Oct 2002, Clark D. Wells wrote:
> > 
> > I have installed psyche on two computers and both have the
> > same problem:
> > 
> > Variables passed from a form are not seen by the php
> > file.  I have written many php pages that worked fine
> > until I moved to redhat 8.0 and now none of them see
> > the data passed from the forms.
> 
> Probably because your code is relying on register_globals being enabled.  
> (which is now disabled by default with PHP >= 4.2)
> 
> It's best to fix your code so that register_globals is not necessary.
> (ie.  use $_POST["var"] or $_GET["var"], instead of $var)

The less secure way would be: 

edit /etc/php.ini and change:

register_globals = Off
to be:
register_globals = On

Then restart apache.

> 
> David.
> 
> 
> 
> -- 
> Psyche-list mailing list
> Psyche-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/psyche-list
-- 

-<>-<>-<>-<>-<>-<>-<>-<>-<> Red Hat Inc. <>-<>-<>-<>-<>-<>-<>-<>-<>-
 Steven G. Taylor, RHCE                     Global Support Services
 Senior Technical Engineer                  1801 Varsity Drive		
 "Esclation Overlord"                       Raleigh, NC  27606
-<>-<>-<>-<>-<>-<>-<>-<>-<  919-754-3700  >-<>-<>-<>-<>-<>-<>-<>-<>-



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux