|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17756 No Post Data present
Submitted: 2002-06-13 18:36 UTC Modified: 2002-08-27 01:00 UTC
Avg. Score:3.9 ± 1.4
Reproduced:9 of 9 (100.0%)
Same Version:3 (33.3%)
Same OS:2 (22.2%)
From: cfranke at harlingen dot tstc dot edu Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.2.2-dev OS: Windows 2000 Advanced Server
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-06-13 18:36 UTC] cfranke at harlingen dot tstc dot edu
I'm using Apache 2.0.36 with PHP 4.2.1 via the Apache 2 dll on a Windows 2000 Advanced server machine, with both components being binary distributions.

I'm finding that when I try to use the POST method to send data from a form to a php script, no post data shows up whatsoever, and verified it using the following:     
  echo implode('~', $_POST);

Sending form data via the GET method works without a problem.

I've seen this was a problem that came up before, but was supposed to have been fixed.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-13 19:00 UTC]
Please try with this PHP snapshot:

 [2002-06-14 10:47 UTC] cfranke at harlingen dot tstc dot edu
Updated PHP to php4-win32-STABLE-200206140000 this morning.

This is what I get on the page in question with errors turned on:

Notice: Undefined index: concern in C:\httpd\scform.php on 
line 3
Notice: Undefined index: recommend in C:\httpd\scform.php on line 4
Notice: Undefined index: name in C:\httpd\scform.php on line 5
Notice: Undefined index: dept in C:\httpd\scform.php on line 6
Notice: Undefined index: ext in C:\httpd\scform.php on line 7
Notice: Undefined index: email in C:\httpd\scform.php on line 8

This is the form parser script that I am using:
[I've stripped the code down to only the portion that I have active]

 $concern = $_POST['concern'];
 $recommend = $_POST['recommend'];
 $name = $_POST['name'];
 $dept = $_POST['dept'];
 $ext = $_POST['ext'];
 $email = $_POST['email'];

 echo "$concern<br><br>";
 echo "$recommend<br><br>";
 echo "$name<br><br>";
 echo "$dept<br><br>";
 echo "$ext<br><br>";
 echo "$email<br><br>";
 echo "Mail Passed<br><br>";
 echo implode('~', $_POST);

And here is the form code itself [stripped down to only the form code]:

            <form action="scform.php" method='POST'>
                <textarea name="concern" cols="60" rows="5" tabindex="1"></textarea>
              <p><b>Recommendation/Idea: </b><br>
                <textarea name="recommend" cols="60" rows="5" tabindex="2"></textarea>
              <table width="300" border="0">
                  <td colspan="2"><b>Submitted by:</b></td>
                    <input type="text" name="name" size="30" tabindex="3">
                  <td>Department: </td>
                    <input type="text" name="dept" size="30" tabindex="4">
                    <input type="text" name="ext" size="10" tabindex="5">
                  <td>E-mail: </td>
                    <input type="text" name="email" size="50" tabindex="6">
                <input type="submit" name="Submit" value="Submit Form">
                <input type="reset" name="Clear" value="Clear Form">
 [2002-06-14 12:53 UTC] cfranke at harlingen dot tstc dot edu
I found the exact cause of the error.  This looks like it could either be a PHP bug or an Apache 2 bug:

Originally in my Apache 2 conf file I had the following to load php:

LoadModule php4_module C:/php/sapi/php4apache2.dll
<FilesMatch "\.php$">
    SetOutputFilter PHP

When I switched it to the following, POST method started working again:

LoadModule php4_module C:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php
 [2002-06-14 15:18 UTC]
Forgive me, I should have noticed this was windows thing.
Try THIS snapshot (not the stable ones):

 [2002-08-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-02-20 09:08 UTC] danilovic4 at yahoo dot it
I resolve this problem by modifing the php.ini
I change file_uploads value from Off to On.
Now the form works fine.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC