Step 3/4 - Confirm your vote\n"; $result .= "

".htmlspecialchars($election["question"])."

\n"; if (count ($votes_array) >= 1) { $result .= "

You choose to vote for:

\n"; $result .= "
\n"; $result .= "
    \n"; foreach ($votes_array as $vote) { $found = FALSE; foreach ($choices as $choice) { if ($choice["id"] == $vote) { $result .= "
  1. ".htmlspecialchars($choice["choice"])."
  2. \n"; $found = TRUE; break; } } if (!$found) { $result .= "
  3. Unknown vote: ".htmlspecialchars($vote)."
  4. \n"; $error .= "There was an unkown vote: ".htmlspecialchars($vote)."
    \n"; } } $result .= "
\n"; $result .= "
\n"; } else { $result .= "
\n"; $result .= "

You choose to vote for none of the possible answers.

\n"; $result .= "
\n"; } $result .= "

To confirm this vote, please continue to the next step. "; $result .= "To modify your choice, hit the \"Back\" button in your browser.

\n"; return $result; } ?>