Re: How can I destroy parameters by page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on a side note, for devs, i don't really like how you can override the
values of the $_GET (or $_POST) array, seems like it could be a
security threat. Also, with that ability, you can never tell
(especially if you are making a mod, etc for a larger system) if what
your dealling with is the ACTUAL $_GET vars or something injected
later in the code.


On Fri, 25 Mar 2005 10:35:30 +0100, listas@xxxxxxxxxx <listas@xxxxxxxxxx> wrote:
> Use unset()
> 
> unset($_GET['item']);
> unset($_GET['ac2']);
> 
> if you want to destroy the value and its name in the same $_GET array.
> 
> or unset($item); if you want to destroy another variable, not related to
> $_GET
> 
> You can use the same with $_POST...
> 
> Devta.
> 
> >IHow Can I destroy some variable that I pass by url, exmple:
> >http://webadmin/paginas/personalidades.php?ac2=delete&item=18#
> >then when i get the varibale ac2 and item, I want to delete the value of
> >this variable.
> >how can I do?
> >
> 
> ___________________________________________________
> 
> Yahoo! Messenger - Nueva versión GRATIS
> 
> Super Webcam, voz, caritas animadas, y más...
> 
> http://messenger.yahoo.es
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux