Re: handling of checkboxvalues

From: Date: Sun, 12 Feb 2006 12:57:57 +0000
Subject: Re: handling of checkboxvalues
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-41232@lists.php.net to get a copy of this message
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

« previous php.db (#41232) next »