RE: [PHP] looking for code to delete from lists..
| From: | Kilbride, James | Date: | Tue, 11 Oct 2005 14:04:17 +0000 |
| Subject: | RE: [PHP] looking for code to delete from lists.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223897@lists.php.net to get a copy of this message | ||
Multiple Select form element, submit button. On submit iterate through
the submitted sequence to delete from the database(or use a delete from
statement that has the list of items depending on other work you want to
do on the list before deletion). HTML_QuickForm gives you an easy way to
generate the list.
James Kilbride
> -----Original Message-----
> From: bruce [mailto:bedouglas@earthlink.net]
> Sent: Tuesday, October 11, 2005 10:06 AM
> To: php-general@lists.php.net
> Subject: [PHP] looking for code to delete from lists..
>
> hi.
>
> i'm generating a list
>
> +----------------+
> | |
> | foo |
> | cat |
> | . |
> | . |
> | . |
> | |
> +----------------+
>
> cancel/submit
>
> i want to give the user the ability to delete single/multiple
> rows from the list. i then want to be able to write/submit
> the resulting list. any code samples, or pointers to apps
> that all ready do this would be appreciated.
> i'd prefer to not reinvent the wheel!
>
> i'm thinking that i could create a select/option list, and
> then allow the user to select any items that they want to
> delete. the app would then iterate through the array on the
> submit, and do an update on the db tbls..
>
> thanks
>
> -bruce
> bedouglas@earthlink.net
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>