<?php $activist_interests = array("Volunteer:Outreach" => "Outreach", "Volunteer:Phone Bank" => "Phone Bank", "Volunteer:Direct Action" => "Direct Action", "Volunteer:Attend Protest" => "Attend Protest", "Volunteer:Volunteer in Office" => "Volunteer in Office", "Volunteer:Host House Party" => "Host House Party", "Volunteer:Raise Money" => "Raise Money", "Volunteer:Driver" => "Driver", "Volunteer:Work In Office" => "Work In Office", "Volunteer:Bottom-line Protest" => "Bottom-line Protest"); foreach ($activist_interests as $ab => $name) { $activist_interests_options .= '<option value="' . $ab . '" ' . form_selected_tag($ab, $s) . '>' . $name . '</option>'; } echo $activist_interests_options;
<?php $sql = 'select * from email_trigger where Reference_Name != "" order by Reference_Name asc'; $S = $db->Execute($sql) or die($db->errorMsg()); $trigs = $S->GetArray(); foreach ($trigs as $i) { $trigger_options .= '<option value="' . $i['email_trigger_KEY'] . '" ' . form_selected_tag($i['email_trigger_KEY'], $trigger_value) . '>' . $i['Reference_Name'] . '</option>'; $options_trigger[$i['email_trigger_KEY']] = $i['Reference_Name']; }
<?php $sql = 'select * from groups where Group_Name != "" order by Group_Name asc'; $S = $db->Execute($sql) or die($db->errorMsg()); $s = $S->GetArray(); foreach ($s as $i) { $group_options .= '<option value="' . $i['groups_KEY'] . '" ' . form_selected_tag($i['groups_KEY'], $groups_value) . ' >' . $i['Group_Name'] . '</option>'; } echo $group_options; ?>
<?php $issues_array = array("Issue:Forests" => "Forests", "Issue:Energy" => "Energy", "Issue:Animals" => "Animals", "Issue:Food" => "Food", "Issue:Corporate Power" => "Corporate Power", "Issue:Banks" => "Banks", "Issue:MTR" => "MTR", "Issue:Human Rights" => "Human Rights", "Issue:Coal" => "Coal", "Issue:Rainforests" => "Rainforests", "Issue:Climate Change" => "Climate Change"); foreach ($issues_array as $ab => $name) { $issues_options .= '<option value="' . $ab . '" ' . form_selected_tag($ab, $s) . '>' . $name . '</option>'; } echo $issues_options;