$_POST["name"], $name, $_GET["name"] - Nothing works

From: Schnul (schnul_at_gmx.at)
Date: 10/29/03


Date: Wed, 29 Oct 2003 21:57:07 +0100

Hi there!

I don't want to bother you, because this question is coming up over and
over. But I searched a lot and didnt't yet find an answer why nothing
works for me. It drives me nuts because I get NOTHING to work and that's
the reason why I would like to ask...

I've a form that looks like this:

this.php
<html>
  <body>
   <form action="this.php" method="POST">
     <input type="text" name="gname">
     <input type="text" name="gmail">
     <textarea name="gcomment" rows=4 cols=50></textarea>
     <input type="submit" value="Submit">
    </form>
    <?php
     print_r($_POST);
     print_r($_GET);
     print_r($_REQUEST);
     echo $_POST['gname'];
    ?>
   </body>
</html>

When I submit the form I don't get anyhting out. I tried already several
variations, but nothing works.

I am using:
PHP 4.2.3
Mandrake Linux 9
Apache-AdvancedExtranetServer/1.3.26

The register_globals is set to on. This is the default by Mandrake in
this version.

Any help is appreciated very much.

Sorry & thanks,
Chris



Relevant Pages

  • MDKSA-2002:017 - php update
    ... Several flaws exist in various versions of PHP in the way it handles ... Mandrake Linux 8.0/ppc: ... To upgrade automatically, use MandrakeUpdate. ... pub 1024D/22458A98 2000-07-10 Linux Mandrake Security Team ...
    (Bugtraq)
  • Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA
    ... Does it bother you by the fact that I suggest that people use my classes ... If you think just of the winners of the PHP Programming Innovation Award ... server and only passes information to the backend server when it is ready. ... It is possible that your message is malformed and the frontend server is ...
    (php.general)
  • Re: [PHP] Re: [QUESTION] MAIL: Send a NOOP instead of DATA
    ... Does it bother you by the fact that I suggest that people use my classes ... If you think just of the winners of the PHP Programming Innovation Award ... server and only passes information to the backend server when it is ready. ... It is possible that your message is malformed and the frontend server is ...
    (php.general)
  • Re: PHP-Yes, HTML-No --- Why?
    ... >I mean as in you are showing the world what technology you're using:) ... Smiley noted but it doesn't seem to bother people using other ... why does it seem to bother people who use PHP? ... good, people who use it are just amateurs, yadda, yadda... ...
    (comp.lang.php)
  • Re: I FOUND IT!
    ... Rik and I were both trying to tell you where you needed to go to get ... the answer and all you would do in your arrogance was moan that the ... You will avoid answers like "What does this have to do with PHP? ... don't even bother -- that's not the right answer.". ...
    (comp.lang.php)