Hi, i made a guestbook and it works fine. But i used method="post" to get the data from every text field. So when a user types in something will he get all data in the browsers adress-field. Can I get this to work without having the adress-field all filled up with stuff?

knuff

    It will only show up in the url if you use method="get"... access your variables with $_POST!

      I dont get it..

      how shall i replace the get method with $_post?

      <form action="www-gbok.php" method="get" name="mess">

      pls let me know..

      knuff

        simple take out the work 'get' and replace it with 'post'

          What I meant was for you to replace "get" with "post", and then you can use the global $_POST to access your variables. let's say that you have a form field called 'orange', then you'll access it like this:

          <?php
          
          echo $_POST['orange'];
          
          ?>
          

            I don't think he means replace the get method with the $POST thingy, just to use that to access the variables submitted with the form, I think it is an array that stores all the form vars:
            $
            POST["$form_var"] will access the $form_var variable collected in the form.

              Its been solved once again of the fine members of phpbuilder.

              Well I changed

              method="get"

              to

              method="post"

              but I should really tried that one, sorry guys but i thought i was supose to use variables because of the dollarsign.

              thx everyone.

              knuff

                Write a Reply...