Actually, it's better to leave register_globals turned off. Turning it on presents a security risk. With globals off, you can access the query string this way...

$_GET['variable_name']

This works if you send the variables along with the link, or if you use the "get" method to send a form. To retrive the values of a form using the "post" method....

$_POST['variable_name']

Brian Ashe wrote:
Hello Meganone,

Monday, November 4, 2002, 9:31:16 AM, you textually orated:

M> Hello.

M> I'm using Red Hat 8 as my web server with PHP module. The PHP version is
M> 3.23.52-3 (The original RPM that comes with the distro). It seems that
M> the PHP module have a problem with getting the query strings
M> (www.somesite.com/index.php?pid=123). I've already checked the
M> configuration of both Apache and PHP module.
M> What causes the problem and what should I do to fix it?

Newer versions of PHP all come with "register globals" turned OFF in the
php.ini file. Turn it to on and it should solve your problem.

Have fun,



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to