You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fred Scheifele <ap...@Scheif.net> on 2003/11/12 00:23:59 UTC

[users@httpd] Re: Problem with Form Processing in PHP

Thanks, Luis.

I should have mentioned that the $_REQUEST, $HTTP_POST_VARS, and 
$HTTP_GET_VARS are all empty.  Also, register_globals is off on both my 
test and production servers.  (I don't have access to the php.ini file 
on the production server, but I used the php_flag directive in my 
.htaccess file to turn register_globals off.)  I have also compared the 
output of PHPInfo() on the test and production servers, and I don't see 
any differences that should cause this behavior.

Cheers,
  Fred Scheifele
  http://www.Scheif.net/

Luis Gallegos wrote:

> Date: Tue, 11 Nov 2003 16:31:39 -0500
> To: users@httpd.apache.org
> From: Luis Gallegos <lg...@todo1.com>
> Subject: Re: [users@httpd] Problem with Form Processing in PHP
> Message-id: <10...@luis>
>
> Try using $HTTP_POST_VARS[] or $HTTP_GET_VARS[].
> Review the php.ini file and the documentation of the variable
> register_globals.
>
>     Luis
>
> On Tue, 2003-11-11 at 15:18, Fred Scheifele wrote:
>
>> Greetings, all.
>>
>> I am relatively new to Apache and have been lurking here for a few 
>> weeks.  This is my first post.
>>
>> I am having a problem processing forms in PHP.  I know this is not a 
>> PHP list, but I have investigated this problem from the PHP side, and 
>> I can't find anything wrong (although I am relatively new to PHP, as 
>> well.)
>>
>> I'll get to the symptoms in a second, but first let me give some 
>> quick background.  My production Web site is on a commercial server 
>> running Apache 1.3.28 and PHP 4.3.3 on Linux.  My site is one of many 
>> virtual hosts served by this machine, and I do not have access to 
>> httpd.conf  I can use .htaccess files freely, though.  I have a test 
>> server (my desktop machine) running Apache 2.0.47 and PHP 4.3.3 on 
>> Windows XP Pro. Obviously, I have access to httpd.conf on the test 
>> server.
>>
>> Now, the symptom.  Form processing works correctly on my test server, 
>> but on the production server, the $_POST super-global array is not 
>> populated with my form data.  (If I submit using GET, the $_GET array 
>> is empty.)
>>
>> And finally, my question.  Are there any Apache directives that could 
>> cause this?  I have looked through the documentation, but my 
>> inexperienced eyes did not find anything.
>>
>> I can post a small test form and action script if it will help.
>>
>> Thanks in advance for any help.
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Problem with Form Processing in PHP

Posted by Robert Andersson <ro...@profundis.nu>.
Fred Scheifele wrote:
> I should have mentioned that the $_REQUEST, $HTTP_POST_VARS,
> and $HTTP_GET_VARS are all empty.  Also, register_globals is off on
> both my test and production servers.

This sounds fishy indeed. I think you should talk to whoever it is that is
responsible for the server. A possibility is that all requests go through
some rewrite rules or proxy that strips the query string.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org