RE: [PHP] making a tutorial

From: Date: Fri, 17 Mar 2006 08:45:10 +0000
Subject: RE: [PHP] making a tutorial
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232094@lists.php.net to get a copy of this message
> >>> <p>Which of the following pets do have at home: > >>> <br /><input type="checkbox" name="favourite[]" > >>> value="dog">dog > >>> <br /><input type="checkbox" name="favourite[]" > >>> value="cat">cat > >>> <br /><input type="checkbox" name="favourite[]" > >>> value="snake">snake > >>> <br /><input type="checkbox" name="favourite[]" > >>> value="other">snake > >>> <br /><input type="checkbox" name="favourite[]" > >>> value="none">none of > >>> these > >>> </p> > > [snip] > >> I don't know if this works in PHP as well. > > It is a "checkbox" so it won't work without "[]" in PHP. > > > > It will work without []. It will just not be an array. > > For checkboxes you could use it without [] but then it would be more like > a radio button. Or you could use it with different names in name="". > Surely parsing the final checkbox would overwrite any previous ones unless they were clearly identifiable as different. George

« previous php.general (#232094) next »