这是我将用来创建投票的片段。有没有一种简单的方法可以让这些问题在每次访问时随机出现?我想把它放在某种 PHP 或 javascript 数组中。有人可以指点我一个很好的教程来学习如何做到这一点吗?
<div id="pollWrap">
<form action="inc/functions.php?action=vote" method="post" name="pollForm">
<h3>Poll Question 1</h3>
<ul>
<li><input id="pollRadioButton1" name="pollAnswerID" type="radio" value="1" /> Answer1 for Poll1</li>
<li class="pollChart pollChart1"> </li>
<li><input id="pollRadioButton2" name="pollAnswerID" type="radio" value="2" /> Answer2 for Poll1</li>
<li class="pollChart pollChart2"> </li>
</ul>
<input id="pollSubmit" name="pollSubmit" type="submit" value="Vote" /> <img alt="Ajax Loader" id="pollAjaxLoader" src="ajaxLoader.gif" /></form>
</div>