ID:               17897
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.2.1
 New Comment:

I think the problem is PHP4.  Because I installed PHP on both Apache
and IIS of W2k.  I got the same problem.  The following are the test
program (test.php).  

<html>
  <head>
    <title>TEST</title>  
  </head>
  <body>
<?
        print_r($_POST); 
    print_r($HTTP_POST_VARS);
?>
    <form action=test.php method=post>
      <input type=text id=ftext value=123></input>
      <br><br>
      <input type=submit></input>
    </form>
  </body>
</html>

I always get empty Arrays.  I never imagine that such simple function
have bugs in PHP, or I know to little about the PHP settings!

Who can HELP!!!  My system cannot progress!!!


Previous Comments:
------------------------------------------------------------------------

[2002-11-18 03:03:47] [EMAIL PROTECTED]

ok the solution to my problem is simple - I am using
AddOutputFilter PHP;INCLUDES .php

so the post variables are missing - thats because you need also to set

AddInputFilter PHP .php

otherwise Apache2 will not forward the POST vars!

------------------------------------------------------------------------

[2002-09-21 02:20:42] [EMAIL PROTECTED]

Thanks [EMAIL PROTECTED]!

Adding "AddType application/x-httpd-php .php" to the conf file worked
for me. 
PHP 4.2.3
APACHE 2.0.40
on WindowsXP

------------------------------------------------------------------------

[2002-09-06 14:12:36] [EMAIL PROTECTED]

this helped me...

LoadModule php4_module php4apache2.dll
AddType application/x-httpd-php .php

this doen't work
#LoadModule php4_module php4apache2.dll
#<FilesMatch "\.php$">
#    SetOutputFilter PHP
#</FilesMatch>

------------------------------------------------------------------------

[2002-09-06 14:05:20] [EMAIL PROTECTED]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
        <title>Untitled</title>
</head>

<body>
<form name="form" action="t.php" method="post">
<input type="text" name="x"><input type="submit" name="submit">
</form>
</body>
</html>

<?
echo $_POST["x"];
echo $x;
?>

both echo are empty... oh yea and file is called t.php... and i have
gloabal = on and populoating varibles with post data...

help...

------------------------------------------------------------------------

[2002-07-09 18:22:00] [EMAIL PROTECTED]

Not really bug (in PHP). If '/' is not added, then a redirection is
done to the / address..and of course the post data is lost. 

Using that kind of urls in "action" field is not very wise..





------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17897

-- 
Edit this bug report at http://bugs.php.net/?id=17897&edit=1

Reply via email to