Re: Form help

From: Date: Mon, 13 Aug 2001 11:38:34 +0000
Subject: Re: Form help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62409@lists.php.net to get a copy of this message
Hi, > <input type="checkbox" name="sif_<? echo $wponud[6]; ?>" > value="1"> I'd do it like this: <inpuut type="checkbox" name="magazines[]" Value="<?php echo $wpound[6]; >?"> Now you have an array containing all the checked magazines. To get and write them into the DB you could use implode() in combination with a field of the type SET or do a while (list($key,$value)=each($magazines)) { Do some query stuff with your primary key in $value; } cheers Johannes

« previous php.general (#62409) next »