Menu

get method not working?

Help
2005-01-14
2012-12-07
  • jason tillett

    jason tillett - 2005-01-14

    I create a simple html page with a link containing some GET data. I look at the contents of the HTTP_GET_VARS and nothing is there? I'm not a newbie to html or php, but I am new to dev-php. I have register_globals = on
    and register_long_arrays = on and register_argc_argv = on, changed these trying to get it to work. It is just a default installation of dev-php. Thank you.

     
    • Urs Mäder

      Urs Mäder - 2005-01-14

      i know, that the get and http_get_vars arrays are not filled in the localhost server. but the following example should work (event method=get works):

      <?php
        if (isset($text_field)) {
          echo "Value: ".$text_field;
          die;
        } else $text_field="";
      ?>

      <form name="form1" method="post" action="test.php">
      test:<input type="text" name="text_field">
      <input type="submit" name="Submit" value="Send Form">
      </form>

      i try for the next version to fix this bug and fill the array in the correct way... thanks for your message.

       

Log in to post a comment.

MongoDB Logo MongoDB