You are here: Re: Listing table data with an option to delete each individual item. « PHP Programming Language « IT news, forums, messages
Re: Listing table data with an option to delete each individual item.

Posted by Geoff Berrow on 10/11/55 11:39

Message-ID: <db2dnQWwkpylNnvenZ2dnUVZ_tadnZ2d@comcast.com> from Jerry
Stuckle contained the following:

>> Name all the boxes 'del[]' When posted the items to be deleted will be
>> in an array and you can loop through it and delete them.
>>
>
>Geoff,

>
>And what happens if I come along and post a form back to your page with:
>
> <input type ='checkbox' name='del[]' value="1 OR 42=42">
>
>ALWAYS validate incoming data - even if it's from a checkbox!

Jerry...you're not thinking this through. The person already has
permission to delete the data.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this 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

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