I tried pasting some jquery examples in and had no luck but would be glad to try anything at this point.
I tried php dumping individual functions for each input of the array and can’t get that to work.
here is what I put in the php
[php] if (!$result[‘expired’]) {
//if game is not expired, show pick
?>
<?php
echo ' <input type="radio" name="game' . $result['gameID'] . '" value="' . $visitorTeam->teamID . '" id="' . $result['gameID'] . $visitorTeam->teamID . '"' . (($picks[$result['gameID']]['pickID'] == $visitorTeam->teamID) ? ' checked="checked"' : '') . ' /> <label for="' . $result['gameID'] . $visitorTeam->teamID . '">' . $visitorTeam->teamName . '</label><br />' . "\n";
echo ' <input type="radio" name="game' . $result['gameID'] . '" value="' . $homeTeam->teamID . '" id="' . $result['gameID'] . $homeTeam->teamID . '"' . (( $picks[$result['gameID']]['pickID'] == $homeTeam->teamID) ? ' checked="checked"' : '') . ' /> <label for="' . $result['gameID'] . $homeTeam->teamID . '">' . $homeTeam->teamName . '</label><br />' . "\n";
echo ' <input type="text" name="points' . $result['gameID'] . '" value="' . $picks[$result['gameID']]['points'] . '" onblur="verifypoints' . $result['gameID'] . '();"/><br /><B>Confidence Points</B>' . "\n";
$lastgameID = $result['gameID'];
[/php]
And here is what it compiled, looks like it should work, but it does nothing.
[code]
![]() New Orleans Saints Record: 5-1-0 Streak: L 1
|
at |
![]() Atlanta Falcons Record: 2-4-0 Streak: W 1
|
Thu 11/21 8:25 pm ET |
|
Your Pick:
<input type="radio" name="game163" value="NO" id="163NO" /> <label for="163NO">New Orleans Saints</label><br />
<input type="radio" name="game163" value="ATL" id="163ATL" /> <label for="163ATL">Atlanta Falcons</label><br />
<input type="text" name="points163" value="" onblur="verifypoints163();"/><br /><B>Confidence Points</B>
</td>
</tr>
<tr>
<td align="center">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="nostyle">
<tr valign="middle">
<td align="center"><label for="164PIT"><img src="images/helmets_big/pit1.gif" onclick="document.entryForm.game164[0].checked=true;" /></label><br /><span style="font-size: 9px;"><b>Pittsburgh Steelers</b><br />Record: 2-4-0<br />Streak: W 2</span></td>
<td align="center">at</td>
<td align="center"><label for="164CLE"><img src="images/helmets_big/cle2.gif" onclick="document.entryForm.game164[1].checked=true;" /></label><br /><span style="font-size: 9px;"><b>Cleveland Browns</b><br />Record: 3-4-0<br />Streak: L 2</span></td>
</tr>
<tr><td colspan="3" align="center">Sun 11/24 1:00 pm ET</td></tr>
</table>
</td>
<td align="left"><b>Your Pick:</b><br />
<script>
function verifypoints164()
{
var x=document.entryForm.points164.value;
if (x < 1) || (x>15){alert( “Please enter a number between 1 and 1” );}
}
<input type="radio" name="game164" value="PIT" id="164PIT" /> <label for="164PIT">Pittsburgh Steelers</label><br />
<input type="radio" name="game164" value="CLE" id="164CLE" /> <label for="164CLE">Cleveland Browns</label><br />
<input type="text" name="points164" value="" onblur="verifypoints164();"/><br /><B>Confidence Points</B>
</td>
</tr>[/code]
|