Re: handling of checkboxvalues

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

 



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 = '{$_POST['user_loeschen'][$i]}'
    ---------------------------
  }
}

?>

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>

I think I made it like the same you tell me. Look into the other mail I post to the list.

Regards,
Ruprecht

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux