I'm new to PHP, and I've run into a snag. I'm trying to display a list of foreign languages available to users in either a list of check boxes or by use of a multiple select box (haven't figured out how to get either one to work.) I'm getting this list from a database. The value of the form object will be the language id. What is displayed to the user will be the actual language. For instance, if I were using checkboxes, here's what it would look like on registration.php:
Code: Select all
<?php
while ($row = $result->fetchRow (DB_FETCHMODE_ASSOC))
{
?>
<input type=checkbox name="Language[]" value=<?php echo $row['LanguageID'];?>><?php echo $row['ForeignLanguage'];
}