Greetings,
I need help with preselecting checkboxes in a HTML form.
The first form has several checkboxes and then I post this to a php page which based on the checkboxes selected will send out emails. Each check box corresponds to an email address. After I send an email to selected people, I then at a later point would like to send an update email. The second form should be pulling up information regarding these checkboxes and select boxes accordingly.
The checkbox portion in the form looks like this!
<INPUT TYPE=CHECKBOX NAME=dl[] VALUE=john@email.com>John
<INPUT TYPE=CHECKBOX NAME=dl1[] VALUE=rambo@email.com>Rambo
<INPUT TYPE=CHECKBOX NAME=dl2[] VALUE=everyone@email.com>Everyone
I then post the above to a PHP page, which then inserts these values into mysql database. I use array_merge to merge the values into a string into a database. When inserted, it get inserted as [email]john@email.com,rambo@email.com,everyone@email.com[/email]. My second form has the same checkboxes but I am clueless regarding reading the checkbox values back and checking the boxes automatically.
Please advise!
Thank you in advance,
- Gravis