Hi all,
Im sure this is an easy one just need some fresh eyes on the script. This script is a simplified one that im working on but the theory is the same. When the check box is clicked I would like the javascript to run so that the screen redirects to website.php along with the value from the check box. However when i run this simplified script I cant seem to get the value to appear in the address bar.
Any help would be much appreciated.
Andy
Im sure this is an easy one just need some fresh eyes on the script. This script is a simplified one that im working on but the theory is the same. When the check box is clicked I would like the javascript to run so that the screen redirects to website.php along with the value from the check box. However when i run this simplified script I cant seem to get the value to appear in the address bar.
Any help would be much appreciated.
Andy
Code:
<?
echo"<script language=\"JavaScript\" type=\"text/javascript\">";
echo"function rss(){;";
echo"window.location = 'website.php?C1=\'$C1\''";
echo"}";
echo"</script>";
echo'<form method="POST" action="[URL unfurl="true"]http://localhost/test/website.php?C1=\"$C1\"">';[/URL]
echo'<input type="checkbox" name="C1" value="4" onclick="rss()">';
echo'</form>';
?>