My code:
PHP Code:
<script language="JavaScript">
function radio_input(url)
{
// Re-direct the browser to the url value
window.location.href = "showthread.php?$session[sessionurl]t=$thread[threadid]";
}
</script>
<!-- thread rating menu -->
<form action="threadrate.php?t=$threadid" method="post" id="showthread_threadrate_form">
<table style="background:#FFDC84;color:#000;" id="threadrating" cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
<tr>
<td style="background:#FFDC84;color:#000;" id="threadrating">
<div align="center" id="threadrating_current">
<div align="left"><strong>Please rate <i>$threadinfo[title]</i></strong></div><br /><br />
<a name="goto_threadrating"></a>
<td ><strong>1
<input name="vote" type="radio" id="vote1" value="1" onClick="JavaScript:radio_input('$votechecked[1]')"$votechecked[1]/>
</strong></td>
<td ><strong>2
<input name="vote" type="radio" id="vote2" value="2" onClick="JavaScript:radio_input('$votechecked[2]')"$votechecked[2]/>
</strong></td>
<td ><strong>3
<input name="vote" type="radio" id="vote3" value="3" onClick="JavaScript:radio_input('$votechecked[3]')"$votechecked[3]/>
</strong></td>
<td ><strong>4
<input name="vote" type="radio" id="vote4" value="4" onClick="JavaScript:radio_input('$votechecked[4]')"$votechecked[4]/>
</strong></td>
<td ><strong>5
<input name="vote" type="radio" id="vote5" value="5" onClick="JavaScript:radio_input('$votechecked[5]')"$votechecked[5]/>
</strong></td>
</div>
</div>
</td>
</tr>
</table>
</form>
It redirects and all but it doesn't seem to register the vote.
Any ideas?