Posted by fletch on 04/24/06 11:23
You need to learn about the request resonse model. php is run to
produce html(& javascript) which is then sent to the browser. The
broser then runs the html (& javascript). So your code will be
delivered to the browser as
<script language = "javascript">
function getS (id){
var output = "";
if (document.getElementById("id").checked)
{
output = output + testing ; // <- error testing is not a variable.
}}
</script>
Navigation:
[Reply to this message]
|