Forum Moderators: coopster

Message Too Old, No Replies

_POST vs. HTTP_POST_VARS

am I going to regret not updating everything?

         

httpwebwitch

2:40 pm on May 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'll admit, I'm still using $HTTP_POST_VARS. I know it's depreciated, but I do it anyways, it's how I learned PHP. Eventually I'll need to edit all my code (w/ search & replace)... but when? how urgent is this kind of thing? Does it really matter?

dcrombie

4:56 pm on May 27, 2004 (gmt 0)



One day HTTP_POST_VARS will stop working - maybe with a warning but most likely now.

perl -pi.old -e 's/HTTP_POST_VARS/_POST/g' *.php

;)

ergophobe

5:48 pm on May 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Furthermore, once you get used to the superglobals, they're real nice. No more passing $HTTP_POST_VARS to every function that needs them.

Also, eight fewer characters to type.