Errors with Checkboxes

I am relatively new to PHP and I just inherited a site at work that was constructed by an outside vendor.

We have a registration form that both sends an email with the info and adds it to the database where it is then used on the site.

There is a field for “Affiliation” where users can select from a series of checkboxes to designate their connection to our organization. As it stands, this is a required field and a visitor can select only one of the checkboxes. I would like to make it so people can select multiple options - because someone could be “Faculty” and “Alumnus” - but for some reason it still only allows you to select only one option.

Ideas?

[php]<input name=“chkFaculty” id=“chkFaculty” type=“checkbox” class=“checkbox” value=“Faculty” <?php if ($chkFaculty) {echo "checked";} ?> /> Faculty 

<input name=“chkStaff” id=“chkStaff” type=“checkbox” class=“checkbox” value=“Staff” <?php if ($chkStaff) {echo "checked";} ?> /> Staff 

<input name=“chkAlumnus” id=“chkAlumnus” type=“checkbox” class=“checkbox” value=“Alumnus” <?php if ($chkAlumnus) {echo "checked";} ?> /> Alumnus[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service