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

".$election["question"]."

\n"; if (($options_nb == 1 && $vote < 0) || ($options_nb > 1 && count ($votes_array) >= 1)) { $result .= "

You choose to vote for:

\n"; $result .= "
\n"; if ($options_nb == 1) { $option = null; foreach ($options as $opt) { if ($opt["id"] == $vote) { $option = $opt; break; } } if ($option != null) $result .= "

".$option["option"]."

\n"; else { $result .= "

Unknown vote: ".$vote."

\n"; $error .= "There was an unkown vote: ".$vote."
\n"; } } else { $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.

\n"; return $result; } ?>