Hi,
I have a dynamic select box that i would like to modify for boolean use. I have done this in the past but can't seem to remember how...
The select looks like this:
$inviteds=array('Select', 'Yes', 'No');
echo '<select name="invited">';
foreach ($inviteds as $value){
echo '<option value="'.$value.'"'; if ($invited==$value) {echo ' selected';} echo'>'.$value.'</option>';
}
echo '</select>';
What i would like is to modify this so the value of the entries are as follows: Select -1, Yes 1, No 0
If someone can help I would appreciate it.
Thanks,
SL