Using $HTTP_POST_VARS for $smarty.post...
| From: | Ronny 'Ronino' Multrus | Date: | Tue, 11 Mar 2003 17:04:17 +0000 |
| Subject: | Using $HTTP_POST_VARS for $smarty.post... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8560@lists.php.net to get a copy of this message | ||
Hello,
I needed to manipulate the data in $_POST (e.g. $_POST['var'] .= ".ext") and
wondered why $smarty.post didn't recognize the changes still printing the old
value. A short look at Smarty's code revealed that the $HTTP_*_VARS-arrays
are used for Smarty's request variables. But these $HTTP_*_VARS are
deprecated according to the php doc and shouldn't be used any longer.
Simply changing them to $_*'s in Smarty.class.php didn't work,
$GLOBALS['HTTP_POST_VARS'] is still used in the compiled template. Now I got
a problem because I use $_POST etc. everywhere in my scripts.
What do you guys think about that?
Ronino