Re: Handling checkboxs (MySQL+PHP)

From: Date: Sun, 30 Dec 2001 03:34:26 +0000
Subject: Re: Handling checkboxs (MySQL+PHP)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79054@lists.php.net to get a copy of this message
Brian -- So I should change the line: echo "<td><input type=\"checkbox\" name=\"frm_pid\" value = \"$pid\" ></td>"; To: echo "<td><input type=\"checkbox\" name=\"frm_pid[]\" value = \"$pid\" ></td>"; Or do I change the value= Thanks -- David > * David Jackson (david.j.jackson@pickledbeans.com) [Dec 29. 2001 > 21:41]: > > [...] > >> My question is how do I process checkbox when multi boxes have >> been check. I keep thinking a array is created by check boxes? > > Use string[] as the name(s) -- where "string" is the label for the > array you want. > > -- > Brian Clark | Avoiding the general public since 1805! > Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 > Caution: Cape does not enable user to fly. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net --

« previous php.general (#79054) next »