Click to See Complete Forum and Search --> : $HTTP_POST_VARS not working?!


Anon
06-28-2002, 07:31 PM
Hi all,

I have a very strange problem. On a new install of PHP 4.2.1, under Apache 2.0.39, running on WinXP, $HTTP_POST_VARS always returns empty. $HTTP_GET_VARS, however, is ok.

As background, I was trying to setup phpMyAdmin and my queries always came back empty. I finally realized that posted data wasn't being passed successfully. I created a simple script to print the results of a form with a single text field. When using the get method and $HTTP_GET_VARS everything was fine, but sure enough, when I changed to post, nothing worked.

Any thoughts? Thanks!

Chris

Anon
06-28-2002, 11:40 PM
I had this strange issue on mine, as well. I uncommented url_rewriter.tags and set it equal to "" . That solved my problem, but I don't know if that will solve yours.

gelwa
06-29-2002, 04:11 AM
First Try to check if the track_vars are On which I think they are,
And then check how did you set the form tags whether they :
<form method="get" action="mypage.php">
Or
<form method="post" action="mypage.php">

Anon
07-03-2002, 02:59 PM
Thanks for both suggestions. Track_vars are supposed to be enabled by default in PHP 4 but I added track_vars="On" to my php.ini file to no avail. I also tried changing the url_rewriter line (which was something I hadn't seen suggested yet) but that didn't work either.

I've actually got the install running fine under IIS on the same machine but it's still bugging me that it won't run under Apache.