it took me a while to find this out, too.
If you have say, 5 checkboxes, name them like so:
when submitted, in the script processing the form, check the array
$musicians[]. The checked selections will be included as elements.
So if trane and bird were checked, you will have a 2-element a
, 15 Jan 2001 14:11:18 -0800
> From: Jerry Lake <[EMAIL PROTECTED]>
> To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]>
> Subject: [PHP] checkboxes into MySQL(trying again)
>
> sorry about that,
> I forgot to erase the old post
> info
>
sorry about that,
I forgot to erase the old post
info
here is a chunk of the code I am using
//inclusion of pizza toppings from DB
$query = ("SELECT * FROM toppings");
$result2 = mysql_db_query($DBName, $query) or
die("Error in MySQL query");
echo "";
echo "";
$colors = array( '#e4e4e4', '#fff
-0800
> From: Jerry Lake <[EMAIL PROTECTED]>
> To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]>
> Subject: [PHP] checkboxes into MySQL
>
> I know this has been discussed,
> but it messing with me.
>
> in a script I'm working on
>
I know this has been discussed,
but it messing with me.
in a script I'm working on
I pull out an array of checkboxes
from a database,
how do I store what people select
back to the DB
all I end up with is the last selection
of the array.
Jerry Lake
-Original Message-
From: jeremy bran
5 matches
Mail list logo