Re: <input type="checkbox">

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

 



$_POST["checkregion"] is supposed to be an array, no?

John Taylor-Johnston wrote:
http://www.glquebec.org/English/test.php
When I check "Knowlton" and "Thetford Mines" or others, only "Thetford Mines" shows up in phpinfo(). $_POST["checkregion"] only sees "Thetford Mines". What am I doing wrong? How do I parse value checkregion? Or set this up differently?

<input type="text" name="Name">
<label><input type="checkbox" name="checkregion" value="Knowlton">A</label> <label><input type="checkbox" name="checkregion" value="Thetford Mines">A</label>


CREATE TABLE IF NOT EXISTS `GLApplications` (
 `Name` varchar(200) NOT NULL,
set(''Knowlton','Thetford Mines','Clarenceville','Sawyerville','Laval') NOT NULL,
 `dummy` int(10) NOT NULL auto_increment,
 PRIMARY KEY  (`dummy`)
)



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux