...

View Full Version : $_POST error



xiaodao
01-11-2006, 07:01 PM
i face a very strange problem
when i build form using post method
i cannot get values like $_POST['email']
must use $HTTP_POST_VARS['email'] to get it, what happens?

Velox Letum
01-11-2006, 07:16 PM
What version of PHP do you run? Try running print_r($_POST);

JamieR
01-11-2006, 08:47 PM
$_POST was introduced in PHP 4.1.0. For versions before then, you have to use HTTP_POST_VARS. This is most likely to be this in your case.

marek_mar
01-11-2006, 09:04 PM
I'd change the server/upgrade PHP.

Rappa
01-12-2006, 03:05 AM
you you giving the value to a variable?

like


$email = HTTP_POST_VARS['email'];

xiaodao
01-12-2006, 03:46 AM
HI
my version is PHP Version 4.4.0
and i tried to print_r($_POST);
get nothing
thanks

firepages
01-12-2006, 07:05 AM
are you using method="POST" in your forms ?

degsy
01-12-2006, 02:03 PM
What do you get if you use


print_r($_REQUEST);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum