Hi,

I am using PHP 4 and Apache 2.0 in my windows. But i couldn't pass the variable to other session.Here is the error.

Notice: Undefined variable: authorname in ..\htdocs\uyeform.php on line 45

Is there any settings for Apache 2? I did it previously with he version 1.3 of Apache

regards

    we need to see the code to help you debug it.

      i have just filled the authorname input text and submited the form but now there is no writing of authorname value. I think i may have a configuration problem...😕 😕
      here is the code :

      <HTML><HEAD><TITLE>FORM</TITLE>
      <META http-equiv=Content-Type content="text/html; charset=windows-1254">
      </HEAD>
      <?include("database.inc");?>
      <?
      if(isset($submit1))
      {
      echo $authorname;
      }
      ?>
      <BODY bgProperties=fixed background=back6.jpg>
      <FORM name=hForm action="uyelikform.php">
      <P><FONT color=crimson size=2><STRONG>
      <INPUT size=27 name=authorname></STRONG></FONT></P>
      <P><INPUT id=submit1 type=submit value="ENTER" name=submit1></P>
      </form>
      </body>
      </html>

        This looks like it would be the problem covered by question One here.

          thank you.. when i changed the value of register_global to On, it started to work.

          thanks again
          😃

            Originally posted by subasi
            thank you.. when i changed the value of register_global to On, it started to work.

            thanks again
            😃

            Bzzzt! Wrong answer! 🙂🙂

            The correct answer is to fix the script to use $_GET['authorname'] etc.

              yes, you are right, it works too. But i also wrote like below and it worked too.

              <?
              blah..blah...
              echo $authorname;
              blah...
              ?>

              🙂

                Originally posted by subasi
                yes, you are right, it works too. But i also wrote like below and it worked too.

                <?
                blah..blah...
                echo $authorname;
                blah...
                ?>

                🙂

                Should've given a link to what the manual says about [man]register_globals[/man], I guess. What it doesn't mention is the possibility that the option might be removed completely in the future.

                  yes you are right...
                  thanks for your help..

                    Write a Reply...