PDA

View Full Version : Multiple selection list



GrandpaRob73
25-Jun-2004, 01:14 AM
First of all, this is a great script. I'm new to PHP, and this has been quite easy to configure. I'm only having one problem. On one of my forms, the user has the option to select several checkboxes under one field. When I receive the email from the form, it only lists the value for the bottom-most check. Is there a way to fix this?

Thanks.

russellr
25-Jun-2004, 01:24 AM
Hi,

In your form you need to declare each of the variables like this:

<input type="checkbox" name="xyz[]" .../>

Note the "[]" after the name.

If that doesn't work or you already have this, please tell me (you can use Private Messaging if you wish) the URL for your form and I'll take a look.

GrandpaRob73
25-Jun-2004, 01:45 AM
Excellent. Works like a charm now. Thanks a lot for the help.