ID:               17756
 Comment by:       danilovic4 at yahoo dot it
 Reported By:      cfranke at harlingen dot tstc dot edu
 Status:           No Feedback
 Bug Type:         Apache2 related
 Operating System: Windows 2000 Advanced Server
 PHP Version:      4.2.2-dev
 New Comment:

I resolve this problem by modifing the php.ini
I change file_uploads value from Off to On.
Now the form works fine.

Bye,
Sasha04


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

[2002-08-27 01:00:09] 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".

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

[2002-06-14 15:18:29] [EMAIL PROTECTED]

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



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

[2002-06-14 12:53:40] 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
</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 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]

<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>&nbsp;</p>
            </form>

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

[2002-06-13 19:00:26] [EMAIL PROTECTED]

Please try with this PHP snapshot: 

http://snaps.php.net/php4-latest.tar.gz


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

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/17756

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

Reply via email to