isset($_REQUEST['var']) works fine on one server but not on another

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sean

    isset($_REQUEST['var']) works fine on one server but not on another

    Hello,

    The isset($_REQUEST['var']) works okay on other servers but not on
    mine. The way the application works is the links are provided as:

    URL.com is a sought-after domain that MediaOptions can help broker for you. Contact us today to get the domain name your company needs!


    And then in cc.php the code is

    if isset($_REQUEST['new']) {
    ...
    }

    The problem is with the above code it sees new as not set and the if
    statement isn't exectuted. The same code on other servers works OK.

    If I change the url to:
    URL.com is a sought-after domain that MediaOptions can help broker for you. Contact us today to get the domain name your company needs!

    or
    URL.com is a sought-after domain that MediaOptions can help broker for you. Contact us today to get the domain name your company needs!


    Then the isset($_REQUEST['new']) will be true.

    Is there any setting in my php config to make php see 'new' variable
    as set as I've shown in the first url in this message?

    Thanks,

    Sean
    email: sean "at" yip "dot" org
  • Jan Pieter Kunst

    #2
    Re: isset($_REQUEST['var']) works fine on one server but not on another

    Sean wrote:[color=blue]
    > Hello,
    >
    > The isset($_REQUEST['var']) works okay on other servers but not on
    > mine. The way the application works is the links are provided as:
    >
    > http://url.com/cc.php?page=currencies&new
    >
    > And then in cc.php the code is
    >
    > if isset($_REQUEST['new']) {
    > ...
    > }
    >
    > The problem is with the above code it sees new as not set and the if
    > statement isn't exectuted. The same code on other servers works OK.
    >
    > If I change the url to:
    > http://url.com/cc.php?page=currencies&new=
    > or
    > http://url.com/cc.php?page=currencies&new=something
    >
    > Then the isset($_REQUEST['new']) will be true.
    >
    > Is there any setting in my php config to make php see 'new' variable
    > as set as I've shown in the first url in this message?[/color]

    I don't think so. I always use 'script?php?var =' if I want an empty
    variable 'var' that is 'set'.

    JP

    --
    Sorry, <devnull@cauce. org> is een "spam trap".
    E-mail adres is <jpk"at"akamail .com>, waarbij "at" = @.

    Comment

    • Jan Pieter Kunst

      #3
      Re: isset($_REQUEST['var']) works fine on one server but not on another

      Jan Pieter Kunst wrote:
      [color=blue]
      > I don't think so. I always use 'script?php?var =' if I want an empty
      > variable 'var' that is 'set'.[/color]

      Read that as 'script.php?var =', of course. Sorry.

      JP

      --
      Sorry, <devnull@cauce. org> is een "spam trap".
      E-mail adres is <jpk"at"akamail .com>, waarbij "at" = @.

      Comment

      Working...