if(sdoor == “single”)
if(ddoor == “double”)
These will both always be true, because you’re getting the value from an element with id=’single’/'double’.
You need to do something like
if (document.getElementById( ‘single’ ).checked)
To see if the user clicked on it.
Also, test your answer.php (with a correct querystring) using your browser (just visit the page) and see if you get the expected result.
Comments
Leave a comment Trackback