Duda de register_globals=off
| From: | Ivan Milanez Castellanos | Date: | Tue, 27 Jul 2004 19:05:49 +0000 |
| Subject: | Duda de register_globals=off | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-50526@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Para dar de alta las variables que yo quiero de un formulario o de una
URL yo uso foreach(array_keys($_POST) as $post_key) { $$post_key =
$_POST[$post_key] }, este código funciona para POST y para GET y para lo
que uno quiera realmente, lo que quiero es saber si alguien me puede
decir como hacer que las variables de post de llamen $p_variable y las
de get $g_variable, de tal manera que al hacer la linea de arriba para
POST y GET al mismo tiempo en un script no me inyecten las variables de
POST por medio de GET.
No se si me explique.
Saludos.
Ivan Milanez Castellanos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBBqeMmUlP3b+yF4oRAj+pAJ95knh7mOREgKFxrMj7AVF3isDuzgCeMZ3v
r0TVMm5Mixozw7fv41H26sY=
=+Las
-----END PGP SIGNATURE-----