- my $url=URI->new($config{cgiurl});
- $url->query_form(
- "do" => "poll",
- "num" => $pagenum{$params{page}},
- "page" => $params{page},
- "choice" => $choice,
- );
- $ret.="<a class=pollbutton href=\"$url\">vote</a>";
+ $ret.="<input type=\"hidden\" name=\"do\" value=\"poll\" />\n";
+ $ret.="<input type=\"hidden\" name=\"num\" value=\"$num\" />\n";
+ $ret.="<input type=\"hidden\" name=\"page\" value=\"$params{page}\" />\n";
+ $ret.="<input type=\"hidden\" name=\"choice\" value=\"$choice\" />\n";
+ if (defined $params{postlink}) {
+ $ret.="<input type=\"hidden\" name=\"postlink\" value=\"".linkpage($params{postlink})."\" />\n";
+ }
+ if (defined $params{posttrail}) {
+ $ret.="<input type=\"hidden\" name=\"posttrail\" value=\"".linkpage($params{posttrail})."\" />\n";
+ }
+ $ret.="<input type=\"submit\" value=\"".gettext("vote")."\" />\n";