on working for the poll hack, I got stuck on this:
In order to let the user define the number of options, I use 2 templates:
newpoll:
and newpollbit:
Now, I want to call newpoll once and newpollbit x times. The following code however, only gives me once newpollbit:
What am I doing wrong? Probably something stupid
In order to let the user define the number of options, I use 2 templates:
newpoll:
<smallfont>Remember to keep the poll options short and to the point</smallfont>
<BR>
<TABLE WIDTH="100%" CELLPADING="0" CELLSPACING="2" BGCOLOR="#FFFFFF">
$pollnewbit
</TABLE>
<BR>
<TABLE WIDTH="100%" CELLPADING="0" CELLSPACING="2" BGCOLOR="#FFFFFF">
$pollnewbit
</TABLE>
<TR>
<TD><normalfont>Option $run:</normalfont></TD>
<TD><INPUT NAME="Option$run" TYPE="TEXT" sIZE="45"></TD>
</TR>
<TD><normalfont>Option $run:</normalfont></TD>
<TD><INPUT NAME="Option$run" TYPE="TEXT" sIZE="45"></TD>
</TR>
for ($run=1; $run < $PollNum; ++$run){
eval("\$pollnewbit = \"".gettemplate("pollnewbit")."\";");
}
eval("\$pollnew = \"".gettemplate("pollnew")."\";");
eval("\$pollnewbit = \"".gettemplate("pollnewbit")."\";");
}
eval("\$pollnew = \"".gettemplate("pollnew")."\";");
Comment