Results 1 to 4 of 4

Thread: PHP Parameters from QueryString

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    4

    Default PHP Parameters from QueryString

    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. #2
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    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. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    4

    Default

    I've tried to set On in register_globals, and restart the Apache, but contiune not working...

    Have another idea ?

  4. #4
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    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)

Similar Threads

  1. Autoresponders with URL parameters
    By isandell in forum cPanel Developers
    Replies: 1
    Last Post: 09-13-2010, 10:20 AM
  2. add parameters in configure php
    By upsforum in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-30-2008, 04:11 PM
  3. how to run newmailcgi with own parameters
    By akucharski in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 09-10-2006, 08:26 PM
  4. php cron job with url parameters [moved]
    By CT Internet in forum New User Questions
    Replies: 4
    Last Post: 02-26-2006, 04:21 AM
  5. MySQL Startup Parameters
    By WestBend in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-30-2004, 05:31 AM