Afficher un message
Vieux 15/03/2008, 05h00   #1
John Taylor-Johnston
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut <input type="checkbox">

Am coding something. Cannot quite clear my head. I know what my SQL
looks like. I just cannot see clearly to input it.
What is $_POST["checkregion"] going to look like? Is it going to have
all the convenient commas I will need in my SQL? Or do I have to parse
God knows how many checkboxes?
John

<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>


$sql ='insert into `database`.`table` (`Nom` ,`checkregion`)
values ('John', 'Knowlton,Thetford Mines') ';


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`)
)
  Réponse avec citation
 
Page generated in 0,04515 seconds with 9 queries