Re: [PHP-DB] handling of checkboxvalues

2006-02-13 Thread Luis Morales
umm, ok... if you put your using echo: ? echo input type='checkbox' name='aus_id[]' value='{$aus_konto['konto']}'; ? Or over html : input type='checkbox' name='aus_id[]' value='?= $aus_konto['konto'] ?' On this way both samples must be ok. Good luck Luis Morales On Sun,

Re: [PHP-DB] handling of checkboxvalues

2006-02-12 Thread Ruprecht Helms
Luis Morales wrote: Well, you can do this... form name='my_form' method='post' action='form.php' ENCTYPE='multipart/form-data' input type='checkbox' name='user_loeschen[] value=?= $id ? id=?= $id? input type=submit name=submit value=send form /form Actually I have written this script to

Re: [PHP-DB] handling of checkboxvalues

2006-02-12 Thread Ruprecht Helms
Hi Luis, you can do this... form.php ? if($_POST['submit'] == 'send form'){ for($i=0;count($_POST['user_loeschen'])$i;$i++){ --- put here your sql statement to delete user --- ej... delete from users where id =

RE: [PHP-DB] handling of checkboxvalues

2006-02-11 Thread Bastien Koert
Give the checkbox value the id of the record to be deleted...if its checked, then you can simply do an in string check in the sql input type='checkbox' name='user_loeschen value='.[User-ID].' $sql = delete from table where id in ({$_POST['user_loeschen']}; bastien From: Ruprecht Helms

Re: [PHP-DB] handling of checkboxvalues

2006-02-11 Thread Luis Morales
Well, you can do this... form.php ? if($_POST['submit'] == 'send form'){ for($i=0;count($_POST['user_loeschen'])$i;$i++){ --- put here your sql statement to delete user --- ej... delete from users where id =