Hi,
Im currently writing a php script which has a hidden text box which contains a value pulled from a sql query which I know does return a result. When a check box is clicked a java script function is called which refreshes the page with the value in the hidden box becoming a variant.
The problem happens when the page refreshs and the variant doesnt appear. I wont display all the code just the important bit so please be ensured that I do have the closed form tag and things like that. Can any one point out the ovbious mistake I have probably made.
Im currently writing a php script which has a hidden text box which contains a value pulled from a sql query which I know does return a result. When a check box is clicked a java script function is called which refreshes the page with the value in the hidden box becoming a variant.
The problem happens when the page refreshs and the variant doesnt appear. I wont display all the code just the important bit so please be ensured that I do have the closed form tag and things like that. Can any one point out the ovbious mistake I have probably made.
Code:
<script language="JavaScript" type="text/javascript">
function rss(){;
window.location = 'websitecomments.php?country=0&contractors=0&xy=0&sort=comments.EntryDate&rss=0&type=<? echo"$rss"; ?>'
}
</script>
<?
echo"<input type=hidden id=rss name=rss value=\"$row[0]\"><form>";
//begining of check box for rss
if ($row[10] == '1'){
echo'<input type="checkbox" value="$row[10]" checked name="RSS" onclick="rss()">"';
$type="c";
}elseif ($row[10] == '0') {
echo"<input type=\"checkbox\" value=\"$row[10]\" name=\"RSS\" onclick=\"rss()\">";
$type="uc";
}
//end of check box rss
?>