This is a discussion on Variable _POST within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Bonsoir, Je passe des variables de formulaire par la méthode post, quelle est la méthode la plus sé...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
"Nico" a écrit le 03/11/2003 :
> Je passe des variables de formulaire par la méthode post, quelle est la > méthode la plus sécurisante pour la reception des données : > > $HTTP_POST_VARS ou bien $_POST tout simple ? ---------- English ---------- This is not a security concern but a syntax one. Since PHP4.2.0 the official PHP documentation recommend to use $_POST[] which is a superglobal array instead of the obsolete $HTTP_POST_VARS. Link in english : http://www.php.net/manual/en/languag...predefined.php ---------- French ---------- Ce n'est pas une question de sécurité, mais d'écriture. Depuis PHP4.2.0 il est préconisé dans la doc officielle d'utiliser $_POST[] (tableaux superglobaux) à la place des écritures $HTTP_POST_VARS obsolètes. Lien en français : http://www.php.net/manual/fr/languag...predefined.php |
|
|||
|
Merci bcq, bonne nuit
"Jedi121" <jedi121news@free.fr.ReplytoOK> a écrit dans le message de news: mesnews.20077d3b.7747398e.85.2689@free.fr.ReplytoOK... > "Nico" a écrit le 03/11/2003 : > > Je passe des variables de formulaire par la méthode post, quelle est la > > méthode la plus sécurisante pour la reception des données : > > > > $HTTP_POST_VARS ou bien $_POST tout simple ? > > ---------- > English > ---------- > This is not a security concern but a syntax one. Since PHP4.2.0 the > official PHP documentation recommend to use $_POST[] which is a > superglobal array instead of the obsolete $HTTP_POST_VARS. > Link in english : > http://www.php.net/manual/en/languag...predefined.php > ---------- > French > ---------- > Ce n'est pas une question de sécurité, mais d'écriture. Depuis PHP4.2.0 > il est préconisé dans la doc officielle d'utiliser $_POST[] (tableaux > superglobaux) à la place des écritures $HTTP_POST_VARS obsolètes. > Lien en français : > http://www.php.net/manual/fr/languag...predefined.php > > |