Reply to Re: [PHP] How can I destroy parameters by page

Your name:

Reply:


Posted by Colin Ross on 03/25/05 12:05

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@uakari.com <listas@uakari.com> 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
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация