tags:

views:

64

answers:

1

What is the difference in using $HTTP_POST_VARS['field'] and $_POST['field']? what makes the difference?

+9  A: 

$HTTP_POST_VARS is the old (deprecated since PHP4.1.0) way of accessing POST data. You never use it nowadays, unless you are working on an ancient legacy application.

Gordon
osCommerce: Is it "Ancient Legacy"?
OM The Eternity
@OMTheEternity depends on which version you are using. If they have this in their actively maintained trunk, then it's just poor code. You should use $_POST nowadays.
Gordon
OSCommerce has some of the crappiest code I've ever seen. It's still a decent system all in all, but some parts of the code base give you goose bumps.
Pekka