Re: Re: <input type="checkbox">

From: Date: Sat, 15 Mar 2008 03:30:25 +0000
Subject: Re: Re: <input type="checkbox">
References: 1 2 3 4  Groups: php.general php.general 
Request: Send a blank email to php-general+get-271636@lists.php.net to get a copy of this message
Ah! ok, Array (
    [0] => Hemmingford
    [1] => Huntingdon
) How do I set up my $sql? $sql ='insert into database.table (Nom ,checkregion) values ('John', '".implode(',', $_POST['myvalues']."') '; ... Hey!! What is this? Diagnostic-Code: smtp; 550-5.7.1 mail rejected by policy. SURBL hit 550-Spammy
    URLs in your message 550 See http://master.php.net/mail/why.php?why=SURBL
Robert Cummings wrote:
On Fri, 2008-03-14 at 23:14 -0400, John Taylor-Johnston wrote:
$_POST["checkregion"] is supposed to be an array, no?
You want the following (otherwise each checked entry overwrites the previous): <input type="checkbox" name="checkregion[]" value="Knowlton" /> <input type="checkbox" name="checkregion[]" value="Thetford Mines" /> Cheers, Rob.


« previous php.general (#271636) next »