Bug #17756 Updated: No Post Data present
| From: | sniper@php.net | Date: | Fri, 14 Jun 2002 19:18:29 +0000 |
| Subject: | Bug #17756 Updated: No Post Data present | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10470@lists.php.net to get a copy of this message | ||
ID: 17756
Updated by: sniper@php.net
Reported By: cfranke@harlingen.tstc.edu
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Windows 2000 Advanced Server
PHP Version: 4.2.2-dev
New Comment:
Forgive me, I should have noticed this was windows thing.
Try THIS snapshot (not the stable ones):
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-06-14 12:53:40] cfranke@harlingen.tstc.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
</FilesMatch>
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 10:47:03] cfranke@harlingen.tstc.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]
<html><body>
<?
$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);
?>
</body></html>
And here is the form code itself [stripped down to only the form
code]:
<form action="scform.php" method='POST'>
<p><b>Concern/Issue</b><br>
<textarea name="concern" cols="60" rows="5"
tabindex="1"></textarea>
</p>
<p><b>Recommendation/Idea: </b><br>
<textarea name="recommend" cols="60" rows="5"
tabindex="2"></textarea>
</p>
<table width="300" border="0">
<tr>
<td colspan="2"><b>Submitted by:</b></td>
</tr>
<tr>
<td>Name:</td>
<td>
<input type="text" name="name" size="30"
tabindex="3">
</td>
</tr>
<tr>
<td>Department: </td>
<td>
<input type="text" name="dept" size="30"
tabindex="4">
</td>
</tr>
<tr>
<td>Extension:</td>
<td>
<input type="text" name="ext" size="10"
tabindex="5">
</td>
</tr>
<tr>
<td>E-mail: </td>
<td>
<input type="text" name="email" size="50"
tabindex="6">
</td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Submit
Form">
<input type="reset" name="Clear" value="Clear
Form">
</p>
<p> </p>
</form>
------------------------------------------------------------------------
[2002-06-13 19:00:26] sniper@php.net
Please try with this PHP snapshot:
http://snaps.php.net/php4-latest.tar.gz
------------------------------------------------------------------------
[2002-06-13 18:36:53] cfranke@harlingen.tstc.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17756&edit=1