The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Parameters from QueryString

Discussion in 'General Discussion' started by webone_helder, Oct 10, 2006.

  1. webone_helder

    webone_helder Registered

    Joined:
    Sep 28, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    It's running Apache 1.3.37 at my new server, but my sites doesn't work very well. When I pass a parameter using querystring in a form, for example, this parameter don't pass to another new page. It's only works if I wrote: $var=$HTTP_GET_VARS['var'];

    It's happenned one time to me, but a can't remember what I need to do to fix this problem.

    Does anyone have idea ?
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    in you php.ini turn register_globals on and that will fix it, however it is considered a security risk and if possible it would be better to fix your scripts instead
     
  3. webone_helder

    webone_helder Registered

    Joined:
    Sep 28, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I've tried to set On in register_globals, and restart the Apache, but contiune not working...

    Have another idea ?
     
  4. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    if you do phpinfo(); does it show register globals on? if not check you edited the correct php.ini file (the location will also be shown in phpinfo's output)
     
Loading...

Share This Page