Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Pubcon Website
how to assign associate array to field input drooh msg:4220627 8:59 pm on Oct 22, 2010 (gmt 0) <input type="checkbox" name="color" value="" /> I know this will get a regular array but how to do associative? ? <input type="checkbox" name="color['color_id']" value="" />
phranque msg:4220893 11:27 am on Oct 23, 2010 (gmt 0)
as far as i know that won't do anything for you in HTML. you might try either hacking a form element name attribute value that can be processed in the script (... name="color:color_id" ...) or defining the associativity with some hidden input parameters. http://www.w3.org/TR/REC-html40/types.html#type-cdata [ w3.org]:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").