Notice: Undefined variable

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

    Notice: Undefined variable

    Hello,
    I've just installed EasyPHP 1.7, ( before i was in 1.6 release ), and
    my application does not run anymore !!! ...

    I've 2 problems :
    ------------------------------------ FIRST PROB.
    In my code i wrote :
    echo "Number :<input type='text' name='cdnum' value = '" . $cdnum .
    "'>";
    $cdnum : to get the previous number input.
    Now, i get the message :
    " Notice: Undefined variable: cdnum in ...\page.php on line 105 "

    In php.ini i change register_global s = OFF to register_global s = ON.
    But the issue isn't changed.
    ------------------------------------- SECOND PROB.
    echo "<form action=" . $PHP_SELF . ">"; Does not run anymore
    echo "<form action=" . $_SERVER['PHP_SELF']. ">"; IS OK !
    Why this change ? A change of PHP ? Of configuration of Apache ?

    Thanks for answers.
  • Pedro Graca

    #2
    Re: Notice: Undefined variable

    PONTEPRIMO wrote:[color=blue]
    > Why this change ? A change of PHP ? Of configuration of Apache ?[/color]

    Have you restarted Apache?
    Are you sure you're changing the _right_ php.ini?

    --
    ..sig

    Comment

    Working...