June 26th, 2000, 12:03 PM
Here is my problem, I'm creating a page that includes check boxes that are pulled from a MySQL database. the user should then select which boxes they want, and then the values should be wrote back to the DB. however when the check boxes are returned they are all returned as the same value name, choice =1&22&choice=3%22 and so on. how can I parse this so that I can store the choices in the DB?
June 26th, 2000, 12:47 PM
In the code, make your checkboxes like so...
<input type=checkbox name=choice[n]>
where "n" is your array index.
This will then be passed into your script as an array.
PHP, Perl, SQL Programming at http://www.mentalobjects.com